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
59aac73785
commit
02ff8244a2
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue