mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Use dynamic variable for varnish proxy_pass.
This commit is contained in:
parent
aa3f174f5e
commit
6804354ab5
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue