Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set multiple cookie domains with environment variable #98

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

lhns
Copy link
Contributor

@lhns lhns commented Apr 11, 2020

This PR allows you to set multiple cookie domains via environment variable by separating then with a comma. The legacy COOKIE_DOMAINS variable supported this but the new COOKIE_DOMAIN variable doesn't.
This PR simply sets the env-delim to ",".

@thomseddon
Copy link
Owner

This is brilliant, I hadn't noticed that feature in go-flags!

Just to make sure we maintain support, would you be able to add a couple of tests in here: https://github.com/thomseddon/traefik-forward-auth/blob/master/internal/config_test.go#L196 ?

@thomseddon thomseddon added bug Something isn't working under review labels Apr 13, 2020
@thomseddon
Copy link
Owner

Perfect, thank you 🙏

@thomseddon thomseddon merged commit c3b4ba8 into thomseddon:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working under review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants