Update opentracing configuration (#2676)
This commit is contained in:
parent
18418157dc
commit
df76d4b481
6 changed files with 84 additions and 62 deletions
1
rootfs/etc/nginx/opentracing.json
Normal file
1
rootfs/etc/nginx/opentracing.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -16,7 +16,9 @@ pid /tmp/nginx.pid;
|
|||
load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
|
||||
{{ end }}
|
||||
|
||||
{{ buildOpentracingLoad $cfg }}
|
||||
{{ if $cfg.EnableOpentracing }}
|
||||
load_module /etc/nginx/modules/ngx_http_opentracing_module.so;
|
||||
{{ end }}
|
||||
|
||||
daemon off;
|
||||
|
||||
|
|
@ -846,6 +848,10 @@ stream {
|
|||
set $service_port "{{ $location.Port }}";
|
||||
set $location_path "{{ $location.Path }}";
|
||||
|
||||
{{ if $all.Cfg.EnableOpentracing }}
|
||||
opentracing_propagate_context;
|
||||
{{ end }}
|
||||
|
||||
{{ if not $all.DisableLua }}
|
||||
rewrite_by_lua_block {
|
||||
{{ if $all.DynamicConfigurationEnabled}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue