remove old conf before generation, dynamic DNS for PHP and reverse proxy and swarm fixes in quickstart guide

This commit is contained in:
florian
2021-08-14 20:52:17 +02:00
parent 3cedc0ae13
commit 0be1da18a6
6 changed files with 25 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
location ~ \.php$ {
{% if REMOTE_PHP != "" +%}
fastcgi_pass {{ REMOTE_PHP }}:9000;
set $backend "{{ REMOTE_PHP }}:9000";
fastcgi_pass $backend;
{% elif LOCAL_PHP != "" +%}
fastcgi_pass unix:{{ LOCAL_PHP }};
{% endif %}

View File

@@ -7,7 +7,8 @@
{% set headers = all[k.replace("URL", "HEADERS")] if k.replace("URL", "HEADERS") in all else "" %}
location {{ url }} {% raw %}{{% endraw +%}
etag off;
proxy_pass {{ host }};
set $backend "{{ host }}";
proxy_pass $backend;
{% if USE_AUTHELIA == "yes" +%}
include {{ NGINX_PREFIX }}authelia-auth-request.conf;
{% endif %}