Skip to content

Commit

Permalink
Update run.sh (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxudong2020 authored Feb 20, 2024
1 parent a01ccdd commit ed7e03f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
cd /default && chmod +x ./overtls && ./overtls -v $OVERTLS_LOG_LEVEL -r server -c config.json

0 comments on commit ed7e03f

Please sign in to comment.