infra4talos/apps-kustomized/cryptpad/ingress.yaml

64 lines
1.8 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: armnleg.martyn.berlin
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "cross-origin-resource-policy: cross-origin";
more_set_headers "cross-origin-embedder-policy: require-corp";
nginx.ingress.kubernetes.io/cors-allow-origin: https://cryptpad-safe.martyn.berlin
nginx.ingress.kubernetes.io/enable-cors: "true"
labels:
app.kubernetes.io/name: cryptpad
name: cryptpad
spec:
rules:
- host: cryptpad.martyn.berlin
http:
paths:
- backend:
service:
name: cryptpad
port:
number: 3000
path: /
pathType: Prefix
tls:
- hosts:
- cryptpad.martyn.berlin
secretName: cryptpad-tls
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: armnleg.martyn.berlin
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "cross-origin-resource-policy: cross-origin";
more_set_headers "cross-origin-embedder-policy: require-corp";
nginx.ingress.kubernetes.io/cors-allow-origin: https://cryptpad-safe.martyn.berlin
nginx.ingress.kubernetes.io/enable-cors: "true"
labels:
app.kubernetes.io/name: cryptpad
name: cryptpad-0
spec:
rules:
- host: cryptpad-safe.martyn.berlin
http:
paths:
- backend:
service:
name: cryptpad
port:
number: 3000
path: /
pathType: Prefix
tls:
- hosts:
- cryptpad-safe.martyn.berlin
secretName: cryptpad-safe-tls