~~ssh~~ https auto update

This commit is contained in:
lhy6305 2024-09-20 19:43:12 +08:00
parent c14d243f8b
commit c4a3166f68
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ apt install -y --no-install-recommends util-linux psmisc nginx-light php7.4-fpm
killall -9 php-fpm7.4
killall -9 nginx
killall -9 gor_linux_x64.upx.elf
cp --force /root/www/docker_container/nginx.conf /etc/nginx/nginx.conf
cp --force /root/www/docker_container/nginx-0.conf /root/nginx-0.conf
@ -17,6 +18,8 @@ cp --force /root/www/docker_container/php-fpm.www.conf /root/php-fpm.www.conf
php-fpm7.4 --allow-to-run-as-root
nginx
#setsid --fork /root/www/docker_container/gor_linux_x64.upx.elf --copy-buffer-size 1048576 --input-tcp :12345 --input-raw-realip-header "X-GOR-Real-IP" --output-http "http://127.0.0.1:25000" --output-file /root/log/gor_traffic.log --output-file-append
#tail -f /dev/null
#sleep infinity
bash -i

View File

@ -1,8 +1,8 @@
#it's already in the http directive
server {
listen 12345;
listen [::]:12345;
listen 25000;
#listen [::]:25000;
root /root/www;