tomche
tomche
EFPElfHosted / Funky Penguin
Created by tomche on 1/22/2024 in #🙋┆geek-support
Dex configuration missing `serve`
Had 2 issues which were complaining about permissions/missing files. Essentially fixed with these
sudo touch /var/data/config/traefik-forward-auth/config.ini
sudo chmod 644 /var/data/config/traefik-forward-auth/config.ini
sudo mkdir /var/data/dex
sudo touch /var/data/dex/dex.db
sudo chmod 644 /var/data/dex/dex.db
sudo touch /var/data/config/traefik-forward-auth/config.ini
sudo chmod 644 /var/data/config/traefik-forward-auth/config.ini
sudo mkdir /var/data/dex
sudo touch /var/data/dex/dex.db
sudo chmod 644 /var/data/dex/dex.db
So sqlite db for dex and config.ini for forward auth. Dunno if it;s the best solution 😉 But it works on my machine ™️
12 replies
EFPElfHosted / Funky Penguin
Created by tomche on 1/22/2024 in #🙋┆geek-support
Dex configuration missing `serve`
While this fixes the first problem there seems to be issues with sqlite permissions/setup as well
12 replies
EFPElfHosted / Funky Penguin
Created by tomche on 1/22/2024 in #🙋┆geek-support
Dex configuration missing `serve`
Ok, I htink I've managed to fix it 🤔
version: '3'

services:
dex:
image: dexidp/dex
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/config/dex/config.yml:/config.yml:ro
networks:
- traefik_public
# FIX
command: ['dex', 'serve', '/config.yml']
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.dex.rule=Host(`dex.frdr.cc`)"
- "traefik.http.routers.dex.enrypoints=https"
- "traefik.http.services.dex.loadbalancer.server.port=5556"

networks:
traefik_public:
external: true
version: '3'

services:
dex:
image: dexidp/dex
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/config/dex/config.yml:/config.yml:ro
networks:
- traefik_public
# FIX
command: ['dex', 'serve', '/config.yml']
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.dex.rule=Host(`dex.frdr.cc`)"
- "traefik.http.routers.dex.enrypoints=https"
- "traefik.http.services.dex.loadbalancer.server.port=5556"

networks:
traefik_public:
external: true
12 replies