Skip to content

Commit 22bf5fd

Browse files
committed
Add redirect for polonium terms & privacy
1 parent 1e9dc55 commit 22bf5fd

2 files changed

Lines changed: 47 additions & 26 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: owlcorp-polonium-redirect-owlcorp-uk
5+
namespace: nginx-gateway
6+
spec:
7+
hostnames:
8+
- polonium.owlcorp.uk
9+
parentRefs:
10+
- name: nginx
11+
namespace: nginx-gateway
12+
rules:
13+
- matches:
14+
- path:
15+
type: PathPrefix
16+
value: /terms
17+
filters:
18+
- type: ExtensionRef
19+
extensionRef:
20+
group: gateway.nginx.org
21+
kind: SnippetsFilter
22+
name: enforce-mtls
23+
- type: RequestRedirect
24+
requestRedirect:
25+
scheme: https
26+
hostname: github.com
27+
path:
28+
type: ReplaceFullPath
29+
replaceFullPath: /owl-corp/owl-corp/blob/main/polonium/TERMS.md
30+
- matches:
31+
- path:
32+
type: PathPrefix
33+
value: /privacy
34+
filters:
35+
- type: ExtensionRef
36+
extensionRef:
37+
group: gateway.nginx.org
38+
kind: SnippetsFilter
39+
name: enforce-mtls
40+
- type: RequestRedirect
41+
requestRedirect:
42+
scheme: https
43+
hostname: github.com
44+
path:
45+
type: ReplaceFullPath
46+
replaceFullPath: /owl-corp/owl-corp/blob/main/polonium/PRIVACY.md
47+
statusCode: 302

kubernetes/namespaces/nginx-gateway/routes/redirects/owlcorp-privacy-redirect-pythondiscord-com.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)