1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

enhance haproxy example

This commit is contained in:
Kirby0025 2025-07-07 16:16:13 +02:00
parent 7b3d7aa2d5
commit fc358b9efc

View file

@ -10,13 +10,21 @@ To do this, you will need to add 2 ACLs and 2 corresponding HAProxy backends in
Example :
```
acl is_adventurelog hdr_sub(Host) -i adventurelog
acl is_adventurelog_backend path_beg /media/ or /admin/
listen http-s
bind :80
use_backend adventurelog_media if is_adventurelog is_adventurelog_backend
use_backend adventurelog if is_adventurelog
timeout connect 5s
timeout client 60s
backend alog
mode http
acl is_adventurelog hdr_sub(Host) -i adventurelog
acl is_adventurelog_backend path_beg /media/ or /admin/
use_backend adventurelog_media if is_adventurelog is_adventurelog_backend
use_backend adventurelog if is_adventurelog
backend adventurelog
server adventurelog 192.168.1.100:3000 check
backend adventurelog_backend
server adventurelog_media 192.168.1.100:8000 check