Skip to content

Commit

Permalink
Update docs/13-skiperator/03-configuring.md
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Bråthen Oma <[email protected]>
  • Loading branch information
martinhny and omaen authored Sep 10, 2024
1 parent 199547c commit c67cbb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/13-skiperator/03-configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ This is the same as for applications, except we don't define inbound policies fo
One thing that is important to remember with routes is that the order of the routes matters.
The route that is defined first will be the one that is matched first.

If your backend service expects requests without the leading pathPrefix, you can configure `rewriteUri` to remove the prefix before it arrives at the backend.

```yaml
apiVersion: skiperator.kartverket.no/v1alpha1
kind: Routing
Expand All @@ -254,8 +256,8 @@ spec:
hostname: kartverket.com
routes:
- pathPrefix: /api # Highest priority
rewriteUri: true
targetApp: backend-app
- pathPrefix: / # Lowest priority
targetApp: frontend-app
```

0 comments on commit c67cbb5

Please sign in to comment.