You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice if we could pass an environment variable to indicate that we want a redirect rule to happen from www.domain.example to backend domain.example or vice-versa.
Activity
pierreozoux commentedon Sep 10, 2018
Yes, I know this part was never clear...
There was never a clear concept from our users.
If you have a good idea for that, please PR.
Maybe:
What do you think?
(I'll not have the time to implement it)
hgezim commentedon Sep 13, 2018
@pierreozoux,
I'll need to check if the domain listed in
VIRTUAL_HOSTSis an eTLD+1 before we can start addingwwwto it. This go library does that: https://godoc.org/golang.org/x/net/publicsuffixThoughts on how I might get this into
templates/haproxy.cfg.tmpl?pierreozoux commentedon Sep 13, 2018
nope :/
hgezim commentedon Mar 18, 2019
Here's what I have working:
VIRTUAL_HOSTS can be set to single, command separated domains, or domains with redirection like so: "commerceowl.com=>www.commerceowl.com".
This way it's quite explicit and no magic happens. Here's the relevant code:
I'd create a pull request but I realized I'm behind and don't understand what the
REVERSE_PROXY_FORstuff does.hgezim commentedon Apr 9, 2019
@pierreozoux, thoughts on the above?