Use variable susbtitution in manifests

This commit is contained in:
2024-12-30 15:37:25 +01:00
parent 1eaa3a42e4
commit 9d078e6c9d
10 changed files with 30 additions and 29 deletions

View File

@@ -6,7 +6,7 @@ metadata:
namespace: auth
spec:
forwardAuth:
address: 'http://authelia.auth.svc.cluster.local/api/authz/forward-auth?authelia_url=https%3A%2F%2Fauth.example.com'
address: 'http://authelia.auth.svc.cluster.local/api/authz/forward-auth?authelia_url=https%3A%2F%2F${AUTHELIA_DOMAIN}'
trustForwardHeader: true
authResponseHeaders:
- "Remote-User"

View File

@@ -1,5 +1,5 @@
# /apps/prod/authelia/values.yaml
domain: 'example.com'
domain: '${DOMAIN}'
configMap:
authentication_backend:
file:
@@ -11,7 +11,7 @@ configMap:
enabled: false
access_control:
rules:
- domain: '*.example.com'
- domain: '*.${DOMAIN}'
policy: one_factor
server:
endpoints:
@@ -22,8 +22,8 @@ configMap:
redis:
enabled: false
cookies:
- domain: 'example.com'
authelia_url: 'https://auth.example.com'
- domain: '${DOMAIN}'
authelia_url: 'https://${AUTHELIA_DOMAIN}'
name: 'authelia_session'
storage:
local:
@@ -51,6 +51,6 @@ ingress:
ingressClassName: "traefik"
traefikCRD:
enabled: true
matchOverride: Host(`auth.example.com`)
matchOverride: Host(`${AUTHELIA_DOMAIN}`)
entryPoints:
- "websecure"