mirror of
https://github.com/TeamPiped/Piped-Docker
synced 2025-09-05 21:11:15 +02:00
Use dynamic variable for varnish proxy_pass.
This commit is contained in:
parent
aa3f174f5e
commit
6804354ab5
@ -2,8 +2,10 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name BACKEND_HOSTNAME;
|
server_name BACKEND_HOSTNAME;
|
||||||
|
|
||||||
|
set $backend "http://varnish:80";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://varnish: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…
x
Reference in New Issue
Block a user