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 c6f61347e5
commit e48cdd5e5e

View file

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