Disable opentracing for nginx internal urls (#2272)
This commit is contained in:
parent
c6c219a7d1
commit
146db43794
2 changed files with 16 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -493,6 +493,9 @@ http {
|
||||||
|
|
||||||
location /nginx_status {
|
location /nginx_status {
|
||||||
set $proxy_upstream_name "internal";
|
set $proxy_upstream_name "internal";
|
||||||
|
{{ if $cfg.EnableOpentracing }}
|
||||||
|
opentracing off;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if $cfg.EnableVtsStatus }}
|
{{ if $cfg.EnableVtsStatus }}
|
||||||
vhost_traffic_status_display;
|
vhost_traffic_status_display;
|
||||||
|
@ -505,6 +508,10 @@ http {
|
||||||
|
|
||||||
{{ if $all.DynamicConfigurationEnabled }}
|
{{ if $all.DynamicConfigurationEnabled }}
|
||||||
location /configuration {
|
location /configuration {
|
||||||
|
{{ if $cfg.EnableOpentracing }}
|
||||||
|
opentracing off;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
{{ if $IsIPV6Enabled }}
|
{{ if $IsIPV6Enabled }}
|
||||||
allow ::1;
|
allow ::1;
|
||||||
|
@ -995,6 +1002,10 @@ stream {
|
||||||
{{ if eq $server.Hostname "_" }}
|
{{ if eq $server.Hostname "_" }}
|
||||||
# health checks in cloud providers require the use of port {{ $all.ListenPorts.HTTP }}
|
# health checks in cloud providers require the use of port {{ $all.ListenPorts.HTTP }}
|
||||||
location {{ $all.HealthzURI }} {
|
location {{ $all.HealthzURI }} {
|
||||||
|
{{ if $all.Cfg.EnableOpentracing }}
|
||||||
|
opentracing off;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
@ -1002,6 +1013,10 @@ stream {
|
||||||
# this is required to avoid error if nginx is being monitored
|
# this is required to avoid error if nginx is being monitored
|
||||||
# with an external software (like sysdig)
|
# with an external software (like sysdig)
|
||||||
location /nginx_status {
|
location /nginx_status {
|
||||||
|
{{ if $all.Cfg.EnableOpentracing }}
|
||||||
|
opentracing off;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range $v := $all.NginxStatusIpv4Whitelist }}
|
{{ range $v := $all.NginxStatusIpv4Whitelist }}
|
||||||
allow {{ $v }};
|
allow {{ $v }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue