peertube-k8s/ingress.yaml

35 lines
990 B
YAML
Raw Normal View History

2021-09-08 18:36:31 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: peertube
labels:
app: peertube
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: "letsencrypt"
cert-manager.io/acme-challenge-type: http01
nginx.ingress.kubernetes.io/connection-proxy-header: "keep-alive"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 500m
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "X-Frame-Options: ALLOWALL";
spec:
tls:
- hosts:
- peertube.example.org
secretName: peertube-tls
rules:
- host: peertube.example.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: peertube
port:
number: 9000