Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 374 Bytes

Readme.md

File metadata and controls

22 lines (16 loc) · 374 Bytes

Rewrite route params

In the services.yaml a rewrite pattern is defined for /geo/

proxies:
  /geo/:
    rewrite: "/geocoding-service/$1"

Hence the generated /etc/nginx/conf.d/locations.conf looks like follows:

# cat /etc/nginx/conf.d/locations.conf

location ~ ^/geo/ {
    ...
    rewrite ^/geo/(.*) /geocoding-service/$1 break;
    ...
}