Optimized webport and certbot_dns_api_token

This commit is contained in:
2025-07-15 15:04:27 +02:00
parent 959c48c1a1
commit bbabc58cf9
6 changed files with 16 additions and 9 deletions

View File

@@ -4,14 +4,14 @@ location {{location | default("/")}}
{% include 'roles/web-app-oauth2-proxy/templates/following_directives.conf.j2'%}
{% endif %}
proxy_pass http://127.0.0.1:{{http_port}}{{location | default("/")}};
proxy_pass http://127.0.0.1:{{ http_port }}{{ location | default("/") }};
# headers
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-Port 443;
proxy_set_header X-Forwarded-Port {{ WEB_PORT }};
proxy_set_header Accept-Encoding "";
{% include 'roles/srv-proxy-7-4-core/templates/headers/content_security_policy.conf.j2' %}