From 9b6ba05f4a3640ad67d197f98eed22e4f932c79e Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 6 Jun 2022 05:29:34 +0100 Subject: [PATCH] Set resolver for nginx. --- template/nginx.conf | 2 ++ template/pipedfrontend.conf | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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"; }