-
Notifications
You must be signed in to change notification settings - Fork 85
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
Why HAPROXY_DOMAIN ? #18
Comments
By the way, the |
That is pretty cool. We used the HAPROXY_DOMAIN for simplicity of deployment. By changing the var and restarting the container we could easily move cluster DNS suffixes. |
I see, but I feel that this domain information should come from consul itself. I'm not sure that you need a DNS suffix anyway, it doesn't really add security. |
We use the DNS suffix for external traffic. First we create a wildcard dns like |
That's also what I did :) |
I've been using haproxy-consul for some weeks now and I still don't get the requirement of specifying the HAPROXY_DOMAIN environment variable for consul use.
Wouldn't it be easier to just define the acl in the tmpl file like this:
Notice the dot following the second occurrence of
{{ .Name }}
. It is here to ensure that services don't get confused (for example "mail" and "mailinglist").I'm not sure though how this would work on the marathon counterpart but I don't believe HAPROXY_DOMAIN should be a requirement for at least consul.
I went even further and extended the tmpl file for multiple domains use, using consul's tags for storing the domains under the form
<domain>_<tld>
.Here are the relevant parts:
There is a lot of room for improvement ;-)
The text was updated successfully, but these errors were encountered: