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

Feature request: Customize config templates #15

Open
jmunson opened this issue Jul 25, 2018 · 2 comments
Open

Feature request: Customize config templates #15

jmunson opened this issue Jul 25, 2018 · 2 comments

Comments

@jmunson
Copy link

jmunson commented Jul 25, 2018

I noticed you can pass haproxy.cfg into /tmp/haproxy.cfg and it's used as the input template for generating the final haproxy.cfg. This is nice, but unfortunately you're limited in what you can do since the frontend and backend sections are generated based on templates stored directly in the python script.

It would be nice if these templates were moved somewhere else, e.g /tmp/haproxy.d/frontend.cfg, so that I could pass in my own template with customizations.

@avoinea
Copy link
Member

avoinea commented Jul 25, 2018

@jmunson You can pass your own haproxy.cfg directly @ /etc/haproxy/haproxy.cfg like:

docker run -it --rm -v /path/on/host/to/haproxy.cfg:/etc/haproxy/haproxy.cfg eeacms/haproxy

See https://github.com/eea/eea.docker.haproxy#use-a-custom-configuration-file-mounted-as-a-volume

@jmunson
Copy link
Author

jmunson commented Aug 6, 2018

Doesn't doing that force you to generate the entire haproxy.cfg manually? My intent was to still have autodiscovery, but tweaking the output format of what it discovers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants