no message

This commit is contained in:
hellcat 2025-07-17 16:47:17 +08:00
parent a4da550540
commit bed36035d2
2 changed files with 71 additions and 204 deletions

View File

@ -1,9 +1,9 @@
/*M!999999\- enable the sandbox mode */
/*M!999999\- enable the sandbox mode */
-- MariaDB dump 10.19-11.6.2-MariaDB, for osx10.19 (x86_64)
--
-- Host: localhost Database: github
-- ------------------------------------------------------
-- Server version 11.6.2-MariaDB
-- Server version 11.6.2-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@ -30,34 +30,25 @@ CREATE TABLE `article` (
`mail_name` varchar(100) DEFAULT NULL,
`mail_tail` varchar(100) DEFAULT NULL,
`sale_code` varchar(30) DEFAULT NULL,
`sale_rate` double(2,1) DEFAULT NULL,
`sale_rate` double(2,1) unsigned DEFAULT NULL,
`sale_price` int(11) DEFAULT 0,
`i_in10` varchar(10) DEFAULT 'false',
`inday_count` int(11) DEFAULT NULL,
`cron_condition` varchar(100) DEFAULT NULL,
`inday_count` int(11) DEFAULT 0,
`cron_condition` varchar(100) DEFAULT 'false',
`mod` varchar(100) DEFAULT NULL,
`mod_type` varchar(100) DEFAULT NULL,
`status` tinyint(4) DEFAULT 1,
`memo` varchar(255) DEFAULT NULL,
`memo` varchar(255) DEFAULT '',
`ship_code` varchar(100) DEFAULT NULL,
`fn_www` varchar(160) DEFAULT NULL,
`show_huodong` tinyint(4) DEFAULT 1,
`show_error` tinyint(1) DEFAULT 1,
`stop` tinyint(1) DEFAULT 0,
`updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1002 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `article`
--
LOCK TABLES `article` WRITE;
/*!40000 ALTER TABLE `article` DISABLE KEYS */;
INSERT INTO `article` VALUES
(1,'testgeigei','test','test.geigei','proton.me','te123',7.5,'7',1440,'false','FreeNode#C',1,NULL,'fuc','cfc.loc',1,0,'2025-04-13 20:23:10',NULL);
/*!40000 ALTER TABLE `article` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cache`
--
@ -73,15 +64,6 @@ CREATE TABLE `cache` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cache`
--
LOCK TABLES `cache` WRITE;
/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cache_locks`
--
@ -97,37 +79,6 @@ CREATE TABLE `cache_locks` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cache_locks`
--
LOCK TABLES `cache_locks` WRITE;
/*!40000 ALTER TABLE `cache_locks` DISABLE KEYS */;
/*!40000 ALTER TABLE `cache_locks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cron`
--
DROP TABLE IF EXISTS `cron`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cron` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cron`
--
LOCK TABLES `cron` WRITE;
/*!40000 ALTER TABLE `cron` DISABLE KEYS */;
/*!40000 ALTER TABLE `cron` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `failed_jobs`
--
@ -148,42 +99,6 @@ CREATE TABLE `failed_jobs` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `failed_jobs`
--
LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `huodong`
--
DROP TABLE IF EXISTS `huodong`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `huodong` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`date_start` date DEFAULT NULL,
`date_end` date DEFAULT NULL,
`date_enable` tinyint(11) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `huodong`
--
LOCK TABLES `huodong` WRITE;
/*!40000 ALTER TABLE `huodong` DISABLE KEYS */;
/*!40000 ALTER TABLE `huodong` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `job_batches`
--
@ -206,15 +121,6 @@ CREATE TABLE `job_batches` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `job_batches`
--
LOCK TABLES `job_batches` WRITE;
/*!40000 ALTER TABLE `job_batches` DISABLE KEYS */;
/*!40000 ALTER TABLE `job_batches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `jobs`
--
@ -235,15 +141,6 @@ CREATE TABLE `jobs` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `jobs`
--
LOCK TABLES `jobs` WRITE;
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `migrations`
--
@ -259,15 +156,6 @@ CREATE TABLE `migrations` (
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `migrations`
--
LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `option`
--
@ -283,17 +171,6 @@ CREATE TABLE `option` (
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `option`
--
LOCK TABLES `option` WRITE;
/*!40000 ALTER TABLE `option` DISABLE KEYS */;
INSERT INTO `option` VALUES
(1,'pause',4);
/*!40000 ALTER TABLE `option` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `password_reset_tokens`
--
@ -309,15 +186,6 @@ CREATE TABLE `password_reset_tokens` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `password_reset_tokens`
--
LOCK TABLES `password_reset_tokens` WRITE;
/*!40000 ALTER TABLE `password_reset_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_reset_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sessions`
--
@ -338,17 +206,6 @@ CREATE TABLE `sessions` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sessions`
--
LOCK TABLES `sessions` WRITE;
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
INSERT INTO `sessions` VALUES
('RPzLHaS0gZTL0yNDLF0xokPiV3QxT8j0bS2MAlME',NULL,'127.0.0.1','Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0','YTozOntzOjY6Il90b2tlbiI7czo0MDoiNUROcnBITGl5NFpLQXdQQ2I5TktxRHNHZldpUUhHWnF0R1BKR2hDQyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MjM6Imh0dHBzOi8vZ2l0aHViLmxvYy9jcm9uIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==',1751542462);
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
@ -369,15 +226,6 @@ CREATE TABLE `users` (
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@ -388,4 +236,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */;
-- Dump completed on 2025-07-06 15:54:36
-- Dump completed on 2025-07-17 16:45:23

View File

@ -3,60 +3,79 @@
安装环境先 https://nextpanel.dev/docs/installation/debian
mkdir /var/www/.ssh
chown -R www-data:www-data /var/www/.ssh
chmod 700 /var/www/.ssh
chmod 600 /var/www/.ssh/\*
基本配置
apt update
alias ll='ls -l'
apt install vim
sudo apt update
sudo apt install openssh-client
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
生成地址写 /var/www/.ssh/id_rsa_邮箱不要后缀
ssh目录
cd /var/www
mkdir .ssh
mkdir /www/wwwroot
cd /www/wwwroot
ssh安装
sudo apt update
sudo apt install openssh-client
ssh-keygen -t rsa -b 4096 -C "github-3@gemsub.online"
生成地址写 /var/www/.ssh/id_rsa_邮箱不要后缀 dahuaidan123123
apt install git
ssh权限
chown -R www-data:www-data /var/www/.ssh
chmod 700 /var/www/.ssh
chmod 600 /var/www/.ssh/*
git clone https://gitea.diaodu.us/tom/github
www创建
cd /
mkdir www
cd www
mkdir wwwroot
cd wwwroot
mv github github-x.diaodu.us
项目文件
apt install git
git clone https://gitea.diaodu.us/tom/github
mv github github-x.diaodu.us
cd进去
mkdir github
chmod -R 755 *
chown -R www-data:www-data *
chmod -R 777 github
just里取出env配置一下githubhotshotgg
cp ./just/env ./.env
对应配置改一下
cd进去
数据库
just里有sql导入
mysql -u -p github < github.sql
导出的话mysqldump -uroot -p --no-data github > github.sql
mysql
CREATE DATABASE github CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'github'@'localhost';
GRANT ALL PRIVILEGES ON github.* TO 'github'@'localhost' IDENTIFIED BY 'hotshotgg';
FLUSH PRIVILEGES;
chmod -R 755 *
chown -R www-data:www-data *
nginx配置
/etc/nginx/nginx.conf 用户改为www-data
添加nginx域名配置.conf后缀别忘了下面有nginx配置复制就行
systemctl restart nginx
mkdir github
chmod -R 777 github
just里取出env配置一下githubhotshotgg
/etc/nginx/nginx.conf 用户改为www-data
CREATE DATABASE github CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'github'@'localhost';
GRANT ALL PRIVILEGES ON github.* TO 'github'@'localhost' IDENTIFIED BY 'hotshotgg';
FLUSH PRIVILEGES;
just里有sql导入
mysql -u -p github < github.sql
添加nginx域名配置.conf后缀别忘了
systemctl restart nginx
安装证书
sudo apt update
sudo apt install snapd
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --nginx
测试https://github-x.diaodu.us/test/hello
去tg上配置他
测试 %test#cron__rand 1
到SSH config updated successfully.
到git push -u origin main错误就基本ok了到linux上提交确认kownhost
sudo -u www-data git add .
sudo -u www-data git push -u origin main
提交成功就ok,通了
tg测试
测试 %test#cron__id 1
到SSH config updated successfully.
到git push -u origin main错误就基本ok了到linux上提交确认kownhost
sudo -u www-data git add .
sudo -u www-data git push -u origin main
提交成功就ok,通了
最后挂上cron* * * * * curl -s https://github-2.diaodu.us/cron > /dev/null
别忘了把inday_count调到正常