mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
feat: building haproxy from scratch with required lua modules
This commit is contained in:
20
haproxy/haproxy.cfg
Normal file
20
haproxy/haproxy.cfg
Normal file
@ -0,0 +1,20 @@
|
||||
global
|
||||
daemon
|
||||
maxconn 256
|
||||
log stdout format raw local0 debug
|
||||
lua-load /usr/local/etc/haproxy/scripts/register.lua
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout connect 5000ms
|
||||
timeout client 50000ms
|
||||
timeout server 50000ms
|
||||
|
||||
frontend http-in
|
||||
bind *:80
|
||||
default_backend servers
|
||||
# http-request lua.test-payload
|
||||
http-request use-service lua.hello-world if { path /hello_world }
|
||||
|
||||
backend servers
|
||||
server server1 nginx:80 maxconn 32
|
Reference in New Issue
Block a user