wemake-services / caddy-gen

Automated Caddy reverse proxy for docker containers
https://hub.docker.com/r/wemakeservices/caddy-gen
MIT License
250 stars 24 forks source link

Autheila support? #73

Closed EmberLightVFX closed 2 years ago

EmberLightVFX commented 2 years ago

Is it possible to add Authelia support through caddy-gen? I know there is the basic auth but we have Authelia already setup with multiple accounts and such.

My guess is that the lable for my docker compose should look something like this:

      caddy: app1.example.com
      caddy.reverse_proxy: "{{upstreams 8080}}"
      caddy.forward_auth.authelia:9091.uri: /api/verify?rd=https://authelia.example.com
      caddy.forawrd_auth.authelia:9091.copy_headers: Remote-User Remote-Groups Remote-Name Remote-Email

and the authelia dockers lable is simple:

      caddy: authelia.example.com
      caddy.reverse_proxy: "{{upstreams 9091}}"

Adding the : before 9091 could be causing problem maybe?