2023-07-06 11:49:33 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
2023-06-30 21:22:44 +00:00
|
|
|
metadata:
|
2023-07-06 11:49:33 +00:00
|
|
|
name: replace-regex
|
|
|
|
namespace: gitea
|
2023-06-30 21:22:44 +00:00
|
|
|
spec:
|
2023-07-06 11:49:33 +00:00
|
|
|
replacePathRegex:
|
|
|
|
regex: "^/metrics"
|
|
|
|
replacement: "/"
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: gitea-ingress
|
|
|
|
namespace: gitea
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: "traefik"
|
2024-11-17 20:18:02 +00:00
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-production"
|
2023-07-06 11:49:33 +00:00
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
2024-11-11 12:45:31 +00:00
|
|
|
- match: Host(`git.halis.io`) && PathPrefix(`/`)
|
2023-07-06 11:49:33 +00:00
|
|
|
kind: Rule
|
|
|
|
middlewares:
|
|
|
|
- name: replace-regex
|
|
|
|
services:
|
|
|
|
- name: gitea-svc
|
|
|
|
port: 80
|
2024-11-11 13:07:04 +00:00
|
|
|
tls:
|
2024-11-17 20:18:02 +00:00
|
|
|
secretName: git-halis-io-tls
|