Skip to content

Commit

Permalink
Set proxy_host variable to avoid using default value from proxy_pass
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Nov 16, 2018
1 parent d26543a commit a2d50c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ http {
{{ end }}
server_name {{ $hostname }};

{{/* default value of proxy_host is the name and port of a proxied server as specified in the proxy_pass directive */}}
set $proxy_host {{ $hostname }};

{{ if gt (len $cfg.BlockUserAgents) 0 }}
if ($block_ua) {
return 403;
Expand Down

0 comments on commit a2d50c2

Please sign in to comment.