Skip to content

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

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

kirby0025
Copy link

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

@kirby0025 kirby0025 requested a review from seanmorley15 as a code owner June 2, 2025 09:44
Copy link

vercel bot commented Jun 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adventurelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2025 2:17pm

@seanmorley15 seanmorley15 changed the base branch from main to development June 23, 2025 21:10
Copy link
Owner

@seanmorley15 seanmorley15 left a 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!

@kirby0025
Copy link
Author

Hello @seanmorley15 ,
I updated the branch and the example as you asked, there is not a lot more but it's clearer.

mode http

acl is_adventurelog hdr_sub(Host) -i adventurelog
acl is_adventurelog_backend path_beg /media/ or /admin/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be this, right?

Suggested change
acl is_adventurelog_backend path_beg /media/ or /admin/
acl is_adventurelog_backend path_beg /media/ or /admin/ or /static/ or /accounts/

Copy link
Author

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
Copy link
Contributor

@UndyingSoul UndyingSoul Jul 21, 2025

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?

Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

3 participants