forked from oculos/mastodon-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress-streaming.yaml
36 lines (36 loc) · 1.05 KB
/
ingress-streaming.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
35
36
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: streaming
namespace: mastodon
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/proxy-body-size: 64m
nginx.ingress.location-snippets: |
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Proxy "";
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
tcp_nodelay on;
labels:
app: streaming
service: streaming
spec:
rules:
- host: mydomain.com
http:
paths:
- path: /api/v1/streaming
pathType: Prefix
backend:
service:
name: streaming
port:
number: 4000