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:
@@ -1,7 +0,0 @@
|
||||
# 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;
|
||||
}
|
@@ -4,7 +4,7 @@
|
||||
|
||||
{% include "_hsts_map.conf" %}
|
||||
|
||||
{% include "_resolved_proto_map.conf" %}
|
||||
include conf.d/include/resolved_proto_map.conf;
|
||||
|
||||
server {
|
||||
set $forward_scheme {{ forward_scheme }};
|
||||
|
Reference in New Issue
Block a user