Skip to content

Commit

Permalink
Set resolver for nginx.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK authored and aspacca committed Jul 23, 2022
1 parent a688aef commit fa5e01c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions template/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ http {

gzip on;

resolver 127.0.0.11 ipv6=off valid=10s;

include /etc/nginx/conf.d/*.conf;
}
4 changes: 3 additions & 1 deletion template/pipedfrontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit fa5e01c

Please sign in to comment.