feat: Add uptime kuma redirect

This commit is contained in:
Tony Du 2025-02-16 21:43:37 -08:00
parent 12113f52f2
commit 56b43f5744
5 changed files with 32 additions and 4 deletions

View File

@ -84,5 +84,11 @@ data:
noTLSVerify: true noTLSVerify: true
http2Origin: true http2Origin: true
httpHostHeader: wizarr.tonydu.me httpHostHeader: wizarr.tonydu.me
- hostname: up.tonydu.me
service: https://traefik.traefik.svc.cluster.local
originRequest:
noTLSVerify: true
http2Origin: true
httpHostHeader: up.tonydu.me
# This rule matches any traffic which didn't match a previous rule, and responds with HTTP 404. # This rule matches any traffic which didn't match a previous rule, and responds with HTTP 404.
- service: http_status:404 - service: http_status:404

View File

@ -2,7 +2,7 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: blog-tonydu name: blog-tonydu-me
namespace: default namespace: default
spec: spec:
entryPoints: entryPoints:

View File

@ -2,5 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- blog-tonydu.yaml - blog-tonydu-me.yaml
- up-tonydu-me.yaml
- up-mnke-org.yaml - up-mnke-org.yaml

View File

@ -2,7 +2,7 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: up-mnke-org name: up-tonydu-me
namespace: default namespace: default
spec: spec:
entryPoints: entryPoints:
@ -27,4 +27,4 @@ spec:
name: uptime-kuma name: uptime-kuma
port: http port: http
tls: tls:
secretName: wildcard-mnke-org-tls secretName: wildcard-tonydu-me-tls

View File

@ -0,0 +1,21 @@
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: up-mnke-org
namespace: default
spec:
entryPoints:
- websecure
routes:
- match: Host(`up.tonydu.me`)
kind: Rule
middlewares:
- name: redirect-tonydu-me-mnke-org
namespace: default
services:
- kind: Service
name: uptime-kuma
port: http
tls:
secretName: wildcard-tonydu-me-tls