From fd8af1139296185817b2f135f1b95c987ab61a7c Mon Sep 17 00:00:00 2001 From: Julien Vey Date: Fri, 20 Nov 2020 01:32:20 +0100 Subject: [PATCH] Fix opentracing propagation on auth-url Currently, the opentracing propagation instructions are set only if opentracing is configured globally. This fix set the propagation instructions if opentracing is disabled globally, but enabled per ingress --- rootfs/etc/nginx/template/nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 4c30f5a52..9c2754b09 100755 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -946,7 +946,7 @@ stream { location = {{ $authPath }} { internal; - {{ if $all.Cfg.EnableOpentracing }} + {{ if (or $all.Cfg.EnableOpentracing $location.Opentracing.Enabled) }} opentracing on; opentracing_propagate_context; {{ end }}