Skip to content

Commit

Permalink
Add events redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Nov 2, 2023
1 parent bb2d835 commit eff0a07
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions apps/events/httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ spec:
hostnames:
- events.wisv.ch
rules:
- filters:
- type: URLRewrite
urlRewrite:
hostname: ch.tudelft.nl
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestRedirect
requestRedirect:
path:
type: ReplacePrefixMatch
replacePrefixMatch: /events
backendRefs:
statusCode: 302
- matches:
- path:
type: PathPrefix
value: /events
backendRefs:
# Somehow backendRefs is required for redirects..
- name: events
port: 80

0 comments on commit eff0a07

Please sign in to comment.