-
Notifications
You must be signed in to change notification settings - Fork 0
/
lemmy-ingresses.yaml
34 lines (34 loc) · 946 Bytes
/
lemmy-ingresses.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: lemmy-ui-ingress
namespace: lemmy
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`example.com`)
kind: Rule
# Consider adding some middlewares here if you want to, like redirect to https?
services:
- name: lemmy-ui-service
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: lemmy-ingress
namespace: lemmy
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`example.com`) && HeadersRegexp(`Accept`, `^application/`) || Host(`example.com`) && Method(`POST`) || Host(`example.com`) && PathPrefix(`/{path:(api|pictrs|feeds|nodeinfo|.well-known)}`)
kind: Rule
services:
- name: lemmy-service
port: 80