DOMAIN causes unexpected behaviour #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
DOMAINenvironment 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 settingDOMAINcauses unexpected behaviour. IfDOMAIN=auth.example.com, only users with emails likeuser@auth.example.comwill be allowed in 😞If the
DOMAINvariable is already used by a container, I would suggest to rename the variable. Use an env likeTRAEFIK_DOMAINand 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
DOMAINis set in the container,traefik-forward-authbehaves 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 theDOMAINvariable for the container. If you never need theDOMAINvariable you could also directly setDOMAIN=""in the compose file.