mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
support forwarded proto
This commit is contained in:
parent
b009c0fec3
commit
4a4e5d2bd5
@ -171,6 +171,11 @@ http {
|
|||||||
proxy_read_timeout 60s;
|
proxy_read_timeout 60s;
|
||||||
proxy_send_timeout 60s;
|
proxy_send_timeout 60s;
|
||||||
|
|
||||||
|
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
|
||||||
|
default $http_x_forwarded_proto;
|
||||||
|
'' $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
${this.ssl.on ? `listen ${this.port} ssl;` : `listen ${this.port};`}
|
${this.ssl.on ? `listen ${this.port} ssl;` : `listen ${this.port};`}
|
||||||
server_name _;
|
server_name _;
|
||||||
@ -407,7 +412,7 @@ ${locationDirective} {
|
|||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||||
|
|
||||||
# Set headers for WebSocket support
|
# Set headers for WebSocket support
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user