mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Set resolver for nginx.
This commit is contained in:
parent
6804354ab5
commit
9b6ba05f4a
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue