Fix pi-hole to work with new setup

This commit is contained in:
Thomas Kleinendorst 2024-11-19 14:31:17 +01:00
parent e4bdd81823
commit c8a8af9c18
9 changed files with 54 additions and 137 deletions

View file

@ -11,6 +11,14 @@ server {
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
{% if simple_reverse_proxy_redirect_to != "" %}
location = / {
return 301 https://{{ simple_reverse_proxy_internal_subdomain }}.kleinendorst.info{{ simple_reverse_proxy_redirect_to }};
}
{% endif %}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;

View file

@ -1,2 +1,3 @@
---
simple_reverse_proxy_redirect_to: ''
simple_reverse_proxy_external_port: 443