Skip to content

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