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"
|
|
|
|
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
|