homelab/manifests/gitea/gitea-public-ingress.yaml

29 lines
554 B
YAML

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: gitea-nik4nao-tls
namespace: gitea
spec:
secretName: gitea-nik4nao-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- gitea.nik4nao.com
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: gitea-public
namespace: gitea
spec:
entryPoints:
- websecure
routes:
- match: Host(`gitea.nik4nao.com`)
kind: Rule
services:
- name: gitea-http
port: 3000
tls:
secretName: gitea-nik4nao-tls