From 7f5c7ba68603603dc0b309758c8677f0b6ae38d6 Mon Sep 17 00:00:00 2001 From: Luke Wood Date: Fri, 5 Oct 2018 08:32:42 +0100 Subject: [PATCH] Wrap all opentracing directives in block to check if enabled (#184) --- nginx/nginx.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/nginx.tmpl b/nginx/nginx.tmpl index 282658a7..f0acfcfd 100644 --- a/nginx/nginx.tmpl +++ b/nginx/nginx.tmpl @@ -187,7 +187,9 @@ http { # Status port. This should be firewalled to only allow internal access. server { +{{ if .OpenTracingPlugin }} opentracing off; +{{ end }} listen {{ .HealthPort }} default_server reuseport; vhost_traffic_status off;