mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
retain x-forwarded-proto
This commit is contained in:
committed by
Keagan McClelland
parent
56041fd503
commit
13c94241c2
@@ -1,3 +1,10 @@
|
||||
map $http_x_forwarded_proto $real_proto {{
|
||||
ext+onions ext+onions;
|
||||
ext+onion ext+onion;
|
||||
https https;
|
||||
http http;
|
||||
default $scheme;
|
||||
}}
|
||||
server {{
|
||||
listen 443 ssl;
|
||||
server_name {hostname}.local;
|
||||
@@ -8,7 +15,7 @@ server {{
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $real_proto;
|
||||
client_max_body_size 0;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
|
||||
Reference in New Issue
Block a user