-
-
Notifications
You must be signed in to change notification settings - Fork 114
feat(docs): adding haproxy configuration example #640
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
base: development
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! Just made a few changes to make it render properly on the docs site. I have not used HAProxy before, but it seems like this is a little snippet of the config. Any chance you could provide the full config (that is generalized) so users can get a example they can just change a few things around on?
Thanks a lot - let me know if there is anything I can do the help!
Hello @seanmorley15 , |
mode http | ||
|
||
acl is_adventurelog hdr_sub(Host) -i adventurelog | ||
acl is_adventurelog_backend path_beg /media/ or /admin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be this, right?
acl is_adventurelog_backend path_beg /media/ or /admin/ | |
acl is_adventurelog_backend path_beg /media/ or /admin/ or /static/ or /accounts/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen any issue with the software using only media and admin to route to backend.
use_backend adventurelog if is_adventurelog | ||
|
||
backend adventurelog | ||
server adventurelog 192.168.1.100:3000 check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't really used HAProxy, but I would think the 192.x ip address shoul be either 127.0.0.1 or localhost, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on your local network. My local is haproxy balancing to other VMs, but if you do container on the same host it shoud be 127.0.0.1 yes.
Hello,
When I installed Adventurelog (great app btw), I had trouble understanding how I was supposed to configure HAProxy to make the images work, and especially that some requests needed to go to the backend.
So here is a little configuration example, let me know if something is unclear or wrong.
Thank you