Access VTS when using proxy_protocol
When I activate proxy_protocol in version 0.8.3 I can not see the vts-status page, add a server to create a proxy to the original, so I can activate the proxy_protocol and see the VTS statistics; Maybe it's not the best solution but it works. Do not add the proxy_protocol conditional on server 18080 because if enabled the / healthz path does not work for K8S. Thanks in advance
This commit is contained in:
parent
7f3763590a
commit
d8368ec939
1 changed files with 10 additions and 0 deletions
|
@ -473,6 +473,16 @@ http {
|
|||
{{ end }}
|
||||
}
|
||||
}
|
||||
|
||||
{{- if $cfg.enableVtsStatus }}
|
||||
server {
|
||||
listen 18081 {{ if $cfg.useProxyProtocol -}} proxy_protocol {{ end -}} reuseport;
|
||||
|
||||
location /nginx_status {
|
||||
proxy_pass http://127.0.0.1:18080;
|
||||
}
|
||||
}
|
||||
{{ end -}}
|
||||
}
|
||||
|
||||
stream {
|
||||
|
|
Loading…
Reference in a new issue