1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-14 10:16:27 +00:00

Fix env var syntax for dex

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2023-10-18 23:14:33 +13:00
parent 4ade410d0d
commit 73ecec6bdf

View File

@@ -55,14 +55,21 @@ Create `/var/data/config/traefik-forward-auth/traefik-forward-auth.env` per the
```bash ```bash
DEFAULT_PROVIDER=oidc DEFAULT_PROVIDER=oidc
PROVIDERS_OIDC_CLIENT_ID=foo # This is the staticClients.id value in config.yml above PROVIDERS_OIDC_CLIENT_ID=foo # (1)!
PROVIDERS_OIDC_CLIENT_SECRET=bar # This is the staticClients.secret value in config.yml above PROVIDERS_OIDC_CLIENT_SECRET=bar #(2)!
PROVIDERS_OIDC_ISSUER_URL=https://dex.example.com # This is the issuer value in config.yml above, and it has to be reachable via a browser PROVIDERS_OIDC_ISSUER_URL=https://dex.example.com # (3)!
SECRET=imtoosexyformyshorts # Make this up. It's not configured anywhere else SECRET=imtoosexyformyshorts # (4)!
AUTH_HOST=auth.example.com # This should match the value of the traefik hosts labels in Traefik Forward Auth AUTH_HOST=auth.example.com #(5)!
COOKIE_DOMAIN=example.com # This should match your base domain COOKIE_DOMAIN=example.com #(6)!
``` ```
1. This is the staticClients.id value in config.yml above
2. This is the staticClients.secret value in config.yml above
3. This is the issuer value in config.yml above, and it has to be reachable via a browser
4. Make this up. It's not configured anywhere else
5. This should match the value of the traefik hosts labels in Traefik Forward Auth
6. This should match your base domain
### Setup Docker Stack for Dex ### Setup Docker Stack for Dex
Now create a docker swarm config file in docker-compose syntax (v3), per the following example: Now create a docker swarm config file in docker-compose syntax (v3), per the following example: