Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run.sh #46

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading