mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-05 04:10:10 +00:00
🔼 Since resolved_progo_map.conf
doesn't change content per host, we should put it in /docker/rootfs/etc/nginx/conf.d/include/resolved_proto_map.conf
instead.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Resolve the effective protocol: use X-Forwarded-Proto if set
|
||||
# (e.g., from proxies like Cloudflare or AWS)
|
||||
# otherwise fall back to the current scheme.
|
||||
map $http_x_forwarded_proto $resolved_proto {
|
||||
default $scheme;
|
||||
~.+ $http_x_forwarded_proto;
|
||||
}
|
Reference in New Issue
Block a user