mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-12-12 21:30:41 +05:30
Set resolver for nginx.
This commit is contained in:
parent
6804354ab5
commit
9b6ba05f4a
@ -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 New Issue
Block a user