Skip to content

Commit

Permalink
Update config for Nginx.
Browse files Browse the repository at this point in the history
  • Loading branch information
loyess committed Apr 17, 2024
1 parent df3f198 commit 66c2c46
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions webServer/nginx_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ nginx_ws_config(){
}
location / {
sub_filter ${mirror_domain} ${domain};
sub_filter \$proxy_host \$host;
sub_filter_once off;
proxy_pass ${mirror_site};
proxy_set_header Host \$proxy_host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Referer ${mirror_site};
proxy_set_header Host ${mirror_domain};
proxy_pass ${mirror_site};
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-Port \$server_port;
proxy_set_header X-Forwarded-Proto \$scheme;
}
}
}
Expand Down Expand Up @@ -105,14 +105,14 @@ nginx_grpc_config(){
}
location / {
sub_filter ${mirror_domain} ${domain};
sub_filter \$proxy_host \$host;
sub_filter_once off;
proxy_pass ${mirror_site};
proxy_set_header Host \$proxy_host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Referer ${mirror_site};
proxy_set_header Host ${mirror_domain};
proxy_pass ${mirror_site};
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-Port \$server_port;
proxy_set_header X-Forwarded-Proto \$scheme;
}
}
}
Expand Down

0 comments on commit 66c2c46

Please sign in to comment.