mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
readme update,
remove ssl from haproxy since its just the docker example
This commit is contained in:
@ -48,7 +48,7 @@ DDoS-protection mode is enabled by default.
|
|||||||
|
|
||||||
#### Installation
|
#### Installation
|
||||||
|
|
||||||
Before installing the tool, ensure that HAProxy is built with Lua support (in debian package and ubuntu recommended PPA, it is.)
|
Before installing the tool, ensure that HAProxy is built with Lua support and version >=2.5 for the native httpclient support. For Debian and Ubuntu (and -based) distros, see https://haproxy.debian.net/ for packages.
|
||||||
|
|
||||||
- Copy [haproxy.cfg](haproxy/haproxy.cfg) to /etc/haproxy
|
- Copy [haproxy.cfg](haproxy/haproxy.cfg) to /etc/haproxy
|
||||||
- Edit the `lua-load` directive to be the absolute path to [register.lua](src/scripts/register.lua)
|
- Edit the `lua-load` directive to be the absolute path to [register.lua](src/scripts/register.lua)
|
||||||
|
@ -75,7 +75,7 @@ backend servers
|
|||||||
http-response cache-store basic_cache if can_cache
|
http-response cache-store basic_cache if can_cache
|
||||||
|
|
||||||
# placeholder servers, activated by LUA or the control panel
|
# placeholder servers, activated by LUA or the control panel
|
||||||
server-template websrv 1-100 0.0.0.0:80 check disabled ssl verify none
|
server-template websrv 1-100 0.0.0.0:80 check disabled
|
||||||
# use server based on hostname
|
# use server based on hostname
|
||||||
use-server %[req.hdr(host),lower,map(/etc/haproxy/backends.map)] if TRUE
|
use-server %[req.hdr(host),lower,map(/etc/haproxy/backends.map)] if TRUE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user