DOMAIN causes unexpected behaviour #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
DOMAIN
environment variable has a special meaning fortraefik-forward-auth
: it establishes a list of allowed email domains for SSO https://github.com/thomseddon/traefik-forward-auth#user-restrictionThis means that
abra
's default behaviour of settingDOMAIN
causes unexpected behaviour. IfDOMAIN=auth.example.com
, only users with emails likeuser@auth.example.com
will be allowed in 😞If the
DOMAIN
variable is already used by a container, I would suggest to rename the variable. Use an env likeTRAEFIK_DOMAIN
and placeDOMAIN=${TRAEFIK_DOMAIN}
in the compose file underenvironment
.@moritz thanks for the suggestion! Maybe I'm misunderstanding your suggestion, but the problem seems to be that, if
DOMAIN
is set in the container,traefik-forward-auth
behaves unexpectedly – and I can't find a way to unset it.If you set
DOMAIN=${TRAEFIK_DOMAIN}
in the compose file and setTRAEFIK_DOMAIN=""
in your .env file you unset theDOMAIN
variable for the container. If you never need theDOMAIN
variable you could also directly setDOMAIN=""
in the compose file.