Fix pi-hole to work with new setup
This commit is contained in:
parent
e4bdd81823
commit
c8a8af9c18
9 changed files with 54 additions and 137 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue