feat(config): Using configMaps instead of env-variables for traefik-forward-auth

This commit is contained in:
Vegard Hagen
2022-10-13 19:28:44 +02:00
parent 954ff94821
commit 8eb09c3f50
2 changed files with 5 additions and 23 deletions

View File

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

View File

@@ -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: