remove old conf before generation, dynamic DNS for PHP and reverse proxy and swarm fixes in quickstart guide
This commit is contained in:
@@ -43,7 +43,7 @@ http {
|
||||
tcp_nodelay on;
|
||||
|
||||
# load mime types and set default one
|
||||
include /etc/nginx/mime.types;
|
||||
include /etc/nginx/mime-types.conf;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# write logs to local syslog
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user