mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 05:05:17 +02:00
Merge 83e6510cba
into 2412754350
This commit is contained in:
commit
5194c77eee
3 changed files with 33 additions and 0 deletions
|
@ -149,6 +149,7 @@ export default defineConfig({
|
|||
},
|
||||
{ text: "Traefik", link: "/docs/install/traefik" },
|
||||
{ text: "Caddy", link: "/docs/install/caddy" },
|
||||
{ text: "HAProxy", link: "/docs/install/haproxy" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
@ -24,3 +24,4 @@ Perfect for Docker beginners.
|
|||
- [Nginx Proxy Manager](nginx_proxy_manager.md) — Easy reverse proxy config
|
||||
- [Traefik](traefik.md) — Dynamic reverse proxy with automation
|
||||
- [Caddy](caddy.md) — Automatic HTTPS with a clean config
|
||||
- [HAProxy](haproxy.md) — High-performance reverse proxy with advanced control
|
||||
|
|
31
documentation/docs/install/haproxy.md
Normal file
31
documentation/docs/install/haproxy.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Installation with Haproxy
|
||||
|
||||
HAProxy is a free and open source software that provides a high availability load balancer and Proxy for TCP and HTTP-based applications.
|
||||
|
||||
You need to make the frontend and the backend available in order to have your AdventureLog working properly.
|
||||
To do this, you will need to add 2 ACLs and 2 corresponding HAProxy backends in your haproxy configuration :
|
||||
- One for your regular Adventurelog domain that will direct the requests to the frontend.
|
||||
- One for the URLs that need to access the backend.
|
||||
|
||||
Example :
|
||||
|
||||
```
|
||||
listen http-s
|
||||
bind :80
|
||||
|
||||
timeout connect 5s
|
||||
timeout client 60s
|
||||
|
||||
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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue