mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-01 18:37:52 +00:00
feat(config): Using configMaps instead of env-variables for traefik-forward-auth
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
rule.example_public.action=allow
|
||||
rule.example_public.rule=Host("stats.stonegarden.dev") && PathPrefix("/api/public")
|
||||
|
||||
rule.example_api.action=allow
|
||||
rule.example_api.rule=Host("api.stonegarden.dev") && Headers("X-API-Authorization", "a-long-api-key")
|
||||
|
||||
rule.example_api_query.action=allow
|
||||
rule.example_api_query.rule=Host("api.stonegarden.dev") && && Query("api_key=a-long-api-key")
|
||||
cookie-name="_whoami_auth"
|
||||
log-level="error"
|
||||
cookie-domain="stonegarden.dev"
|
||||
auth-host="auth.stonegarden.dev"
|
||||
whitelist="veghag@gmail.com"
|
||||
@@ -16,7 +16,6 @@ spec:
|
||||
labels:
|
||||
app: traefik-forward-auth
|
||||
spec:
|
||||
#serviceAccountName: traefik-ingress-controller
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- image: thomseddon/traefik-forward-auth:2
|
||||
@@ -27,20 +26,6 @@ spec:
|
||||
env:
|
||||
- name: CONFIG
|
||||
value: "/config"
|
||||
#- name: DOMAIN
|
||||
# value: "gmail.com"
|
||||
# INSECURE_COOKIE is required if not using a https entrypoint
|
||||
#- name: INSECURE_COOKIE
|
||||
# value: "true"
|
||||
# Remove COOKIE_DOMAIN if not using auth host mode
|
||||
- name: COOKIE_DOMAIN
|
||||
value: "stonegarden.dev"
|
||||
- name: AUTH_HOST
|
||||
value: "auth.stonegarden.dev"
|
||||
- name: LOG_LEVEL
|
||||
value: "trace"
|
||||
- name: WHITELIST
|
||||
value: veghag@gmail.com
|
||||
- name: PROVIDERS_GOOGLE_CLIENT_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
||||
Reference in New Issue
Block a user