able-kite-23499
03/17/2023, 6:31 PMsilly-vegetable-17473
03/20/2023, 12:05 PM- id: dev-rule
version: v0.39.0
upstream:
url: <http://dev.com>
strip_path: "/test"
match:
url: <https://dev.com/test/><.*>
methods:
- GET
- PUT
- POST
- DELETE
- PATCH
- id: prod-rule
version: v0.39.0
upstream:
url: <http://prod.com>
strip_path: "/test"
match:
url: <https://prod.com/test/><.*>
methods:
- GET
- PUT
- POST
- DELETE
- PATCH
Having the same rule can cause issue at later stage as there might be some change that you need to address/test specific to dev and since you have common rule, it would be a big mess.steep-lamp-91158
sed
to string-replace the hostname, or something like jsonnet or even just some program to generate the config from one source