Add $location_path variable

When you define rules in ingress resource, you use path. So it would be
very useful to be able to use the same path in logs.
This commit is contained in:
Dmitry Stolyarov 2018-05-10 01:07:42 +03:00
parent 6f5f0bc0f8
commit 9ba13e34d8

View file

@ -840,6 +840,7 @@ stream {
set $ingress_name "{{ $ing.Rule }}";
set $service_name "{{ $ing.Service }}";
set $service_port "{{ $location.Port }}";
set $location_path "{{ $location.Path }}";
{{ if not $all.DisableLua }}
rewrite_by_lua_block {