mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Remove hardcoded dns resolver in nginx configs
This commit is contained in:
parent
e0a45cbbc8
commit
a76b31cbab
3 changed files with 8 additions and 8 deletions
|
@ -27,7 +27,5 @@ http {
|
||||||
|
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
resolver 127.0.0.11 ipv6=off valid=10s;
|
|
||||||
|
|
||||||
include /etc/nginx/conf.d/*.conf;
|
include /etc/nginx/conf.d/*.conf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
proxy_cache_path /tmp/pipedapi_cache levels=1:2 keys_zone=pipedapi:4m max_size=2g inactive=60m use_temp_path=off;
|
proxy_cache_path /tmp/pipedapi_cache levels=1:2 keys_zone=pipedapi:4m max_size=2g inactive=60m use_temp_path=off;
|
||||||
|
|
||||||
|
upstream backend {
|
||||||
|
server piped:8080;
|
||||||
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name BACKEND_HOSTNAME;
|
server_name BACKEND_HOSTNAME;
|
||||||
|
|
||||||
set $backend "http://piped:8080";
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_cache pipedapi;
|
proxy_cache pipedapi;
|
||||||
proxy_pass $backend;
|
proxy_pass http://backend;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection "keep-alive";
|
proxy_set_header Connection "keep-alive";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
upstream frontend {
|
||||||
|
server pipedfrontend:80;
|
||||||
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name FRONTEND_HOSTNAME;
|
server_name FRONTEND_HOSTNAME;
|
||||||
|
|
||||||
set $backend "http://pipedfrontend:80";
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass $backend;
|
proxy_pass http://frontend;
|
||||||
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