Made domain configurable

This commit is contained in:
Dreaded_X 2024-11-18 23:53:37 +01:00
parent 2bca9e7288
commit 9fa2d155b5
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
4 changed files with 9 additions and 6 deletions

View File

@ -17,7 +17,7 @@ spec:
enabled: true
tls:
enabled: true
secret: huizinga-dev-tls
secret: ${domain/\./-}-tls
traefikCRD:
enabled: true
entryPoints:
@ -50,7 +50,7 @@ spec:
session:
cookies:
- subdomain: login
domain: huizinga.dev
domain: ${domain}
storage:
postgres:

View File

@ -7,7 +7,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`traefik.huizinga.dev`)
- match: Host(`traefik.${domain}`)
kind: Rule
middlewares:
- name: traefik-dashboard-basicauth
@ -16,4 +16,4 @@ spec:
- name: api@internal
kind: TraefikService
tls:
secretName: huizinga-dev-tls
secretName: ${domain/\./-}-tls

View File

@ -47,7 +47,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`whoami.huizinga.dev`)
- match: Host(`whoami.${domain}`)
kind: Rule
middlewares:
- name: default-headers
@ -55,4 +55,4 @@ spec:
- name: whoami
port: 80
tls:
secretName: huizinga-dev-tls
secretName: ${domain/\./-}-tls

View File

@ -15,6 +15,9 @@ spec:
sourceRef:
kind: GitRepository
name: flux-system
postBuild:
substitute:
domain: huizinga.dev
path: ./apps
prune: true
wait: true