From ed7e03fa2c4d7faad0883ec290d5231f4a1045db Mon Sep 17 00:00:00 2001 From: chenxudong2020 <872603935@qq.com> Date: Tue, 20 Feb 2024 16:57:40 +0800 Subject: [PATCH] Update run.sh (#46) --- docker/run.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docker/run.sh b/docker/run.sh index bfe7446..fc5a5f8 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -55,23 +55,21 @@ initConfig(){ server { listen $HTTP_PORT default_server; listen [::]:$HTTP_PORT default_server; - server_name localhost; - rewrite ^(.*)$ https://\$host\$1 permanent; + index index.php index.html index.htm index.nginx-debian.html; + root /web; } server { listen $HTTPS_PORT ssl default_server; listen [::]:$HTTPS_PORT ssl default_server; ssl_certificate /cert/$SSL_PUBLIC; ssl_certificate_key /cert/$SSL_KEY; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; server_name localhost; index index.php index.html index.htm index.nginx-debian.html; root /web; error_page 400 = /400.html; - location ~ \\.php$ { - - } + location $TUNNEL_PATH { proxy_redirect off; proxy_pass http://$OVERTLS_HOST:$OVERTLS_PORT; @@ -102,4 +100,4 @@ EOF echolog "开始启动-----------------------------" echolog "使用的tunnel_path=$TUNNEL_PATH-------" checkssl && initIndex && initConfig && nginx && \ -cd /default && chmod +x ./overtls && ./overtls -v $OVERTLS_LOG_LEVEL -r server -c config.json \ No newline at end of file +cd /default && chmod +x ./overtls && ./overtls -v $OVERTLS_LOG_LEVEL -r server -c config.json