mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 21:25:19 +02:00
enhance haproxy example
This commit is contained in:
parent
7b3d7aa2d5
commit
fc358b9efc
1 changed files with 13 additions and 5 deletions
|
@ -10,13 +10,21 @@ To do this, you will need to add 2 ACLs and 2 corresponding HAProxy backends in
|
||||||
Example :
|
Example :
|
||||||
|
|
||||||
```
|
```
|
||||||
acl is_adventurelog hdr_sub(Host) -i adventurelog
|
listen http-s
|
||||||
acl is_adventurelog_backend path_beg /media/ or /admin/
|
bind :80
|
||||||
|
|
||||||
use_backend adventurelog_media if is_adventurelog is_adventurelog_backend
|
timeout connect 5s
|
||||||
use_backend adventurelog if is_adventurelog
|
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
|
server adventurelog 192.168.1.100:3000 check
|
||||||
backend adventurelog_backend
|
backend adventurelog_backend
|
||||||
server adventurelog_media 192.168.1.100:8000 check
|
server adventurelog_media 192.168.1.100:8000 check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue