Ensured that opentracing on auth request is only enabled for people that have opentracing

This commit is contained in:
Karl Stoney 2020-02-20 14:12:54 +00:00
parent 08471b527b
commit 5c64c52a60

View file

@ -856,8 +856,10 @@ stream {
location = {{ $authPath }} { location = {{ $authPath }} {
internal; internal;
{{ if $all.Cfg.EnableOpentracing }}
opentracing on; opentracing on;
opentracing_propagate_context; opentracing_propagate_context;
{{ end }}
{{ if $externalAuth.AuthCacheKey }} {{ if $externalAuth.AuthCacheKey }}
set $tmp_cache_key '{{ $server.Hostname }}{{ $authPath }}{{ $externalAuth.AuthCacheKey }}'; set $tmp_cache_key '{{ $server.Hostname }}{{ $authPath }}{{ $externalAuth.AuthCacheKey }}';