35 lines
990 B
YAML
35 lines
990 B
YAML
---
|
|
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
|