diff --git a/template/nginx.conf b/template/nginx.conf index 28d54bf..26fce04 100644 --- a/template/nginx.conf +++ b/template/nginx.conf @@ -27,5 +27,7 @@ http { gzip on; + resolver 127.0.0.11 ipv6=off valid=10s; + include /etc/nginx/conf.d/*.conf; } diff --git a/template/pipedfrontend.conf b/template/pipedfrontend.conf index 8e3d442..50c7da2 100644 --- a/template/pipedfrontend.conf +++ b/template/pipedfrontend.conf @@ -2,8 +2,10 @@ server { listen 80; server_name FRONTEND_HOSTNAME; + set $backend "http://pipedfrontend:80"; + location / { - proxy_pass http://pipedfrontend:80; + proxy_pass $backend; proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; }