Set resolver for nginx.

This commit is contained in:
Kavin 2022-06-06 05:29:34 +01:00
parent 6804354ab5
commit 9b6ba05f4a
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
2 changed files with 5 additions and 1 deletions

View File

@ -27,5 +27,7 @@ http {
gzip on; gzip on;
resolver 127.0.0.11 ipv6=off valid=10s;
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
} }

View File

@ -2,8 +2,10 @@ server {
listen 80; listen 80;
server_name FRONTEND_HOSTNAME; server_name FRONTEND_HOSTNAME;
set $backend "http://pipedfrontend:80";
location / { location / {
proxy_pass http://pipedfrontend:80; proxy_pass $backend;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Connection "keep-alive"; proxy_set_header Connection "keep-alive";
} }