This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/tobru-ch/ghost-ingress.yaml

85 lines
1.8 KiB
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/ssl-redirect: "true"
ingress.kubernetes.io/force-hsts: "true"
ingress.kubernetes.io/hsts-max-age: "315360000"
ingress.kubernetes.io/hsts-preload: "true"
labels:
app: tobru-ch
name: ghost
namespace: tobru-ch
spec:
rules:
- host: tobru.ch
http:
paths:
- path: /.well-known/webfinger
pathType: Prefix
backend:
service:
name: ghost
port:
number: 8080
- path: /.well-known/nodeinfo
pathType: Prefix
backend:
service:
name: ghost
port:
number: 8080
- path: /.well-known/host-meta
pathType: Prefix
backend:
service:
name: ghost
port:
number: 8080
- path: /
pathType: Prefix
backend:
service:
name: ghost
port:
number: 2368
- host: www.tobru.ch
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ghost
port:
number: 2368
- host: tobrunet.ch
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ghost
port:
number: 2368
- host: www.tobrunet.ch
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ghost
port:
number: 2368
tls:
- hosts:
- tobru.ch
- www.tobru.ch
- tobrunet.ch
- www.tobrunet.ch
secretName: ghost-ingress-cert