Set resolver for nginx.

This commit is contained in:
Kavin 2022-06-06 05:29:34 +01:00 committed by Andrea Spacca
parent a688aef46f
commit fa5e01c61a
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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";
}