1

I can't seem to see anything in the documentation, but this seems like an obvious feature. I want to supply a file containing a list of users for Basic Authentication. I don't want to edit the HAProxy config file every time a new user is added.

The documentation only gives examples of users specified directly in the file. Am I missing something?

2

You can use a -f option multiple times when running haproxy. See https://stackoverflow.com/questions/25775682/can-i-split-a-large-haproxy-config-file-into-multiple-smaller-files

| improve this answer | |
0

Yes, you are right. There is no such feature in haproxy according to its documentation.

You need to modify your config file each time you want to add a new user, but this should not be bad as far as it is sufficient to do graceful reload.

| improve this answer | |
  • Thanks, I thought so. My user list is automatically updated, and I do not want to automatically update my haproxy file, or reload the config. Looks like I'll have to use nginx. – Joe Dec 17 '16 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.