feat: 反向代理配置默认增加协议转发 (#2456)

This commit is contained in:
zhengkunwang 2023-10-08 02:12:15 -05:00 committed by GitHub
parent 154ea0b4ce
commit fa420b9346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ location ^~ /test {
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;

View File

@ -32,7 +32,7 @@ server {
set $ipWhiteAllow off;
location ~ /.well-known/acme-challenge {
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}