mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 23:17:21 +08:00
feat: 反向代理配置默认增加协议转发 (#2456)
This commit is contained in:
parent
154ea0b4ce
commit
fa420b9346
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ location ^~ /test {
|
||||||
proxy_set_header REMOTE-HOST $remote_addr;
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
add_header X-Cache $upstream_cache_status;
|
add_header X-Cache $upstream_cache_status;
|
||||||
|
|
|
@ -32,7 +32,7 @@ server {
|
||||||
set $ipWhiteAllow off;
|
set $ipWhiteAllow off;
|
||||||
|
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge {
|
location ^~ /.well-known/acme-challenge {
|
||||||
allow all;
|
allow all;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue