Use dynamic variable for varnish proxy_pass.

This commit is contained in:
Kavin 2022-06-02 04:45:49 +01:00
parent aa3f174f5e
commit 6804354ab5
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -2,8 +2,10 @@ server {
listen 80;
server_name BACKEND_HOSTNAME;
set $backend "http://varnish:80";
location / {
proxy_pass http://varnish:80;
proxy_pass $backend;
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
}