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:
parent
6f5f0bc0f8
commit
9ba13e34d8
1 changed files with 1 additions and 0 deletions
|
@ -840,6 +840,7 @@ stream {
|
||||||
set $ingress_name "{{ $ing.Rule }}";
|
set $ingress_name "{{ $ing.Rule }}";
|
||||||
set $service_name "{{ $ing.Service }}";
|
set $service_name "{{ $ing.Service }}";
|
||||||
set $service_port "{{ $location.Port }}";
|
set $service_port "{{ $location.Port }}";
|
||||||
|
set $location_path "{{ $location.Path }}";
|
||||||
|
|
||||||
{{ if not $all.DisableLua }}
|
{{ if not $all.DisableLua }}
|
||||||
rewrite_by_lua_block {
|
rewrite_by_lua_block {
|
||||||
|
|
Loading…
Reference in a new issue