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 59aac73785
commit 02ff8244a2

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 {