This commit is contained in:
parent
e3166ceb65
commit
8067c8abd2
@ -56,7 +56,6 @@ haproxy:
|
||||
- name: scripts/collector.lua
|
||||
lib: false
|
||||
- name: scripts/weight.lua
|
||||
enabled: false
|
||||
lib: false
|
||||
args:
|
||||
- 5
|
||||
@ -67,7 +66,7 @@ haproxy:
|
||||
namespace: paulbsd
|
||||
user: haproxy
|
||||
group: haproxy
|
||||
servername: "High-performance Web Server 1.0"
|
||||
servername: FAProxy (Fucking Awesome Proxy)
|
||||
http2: true
|
||||
defaults:
|
||||
#log: global
|
||||
|
@ -13,8 +13,11 @@ function create_state()
|
||||
try = try+1
|
||||
end
|
||||
|
||||
local a = io.popen('echo "show servers state" | socat tcp-connect:127.0.0.1:9990 -')
|
||||
local content = a:read("*a")
|
||||
local s = core.tcp()
|
||||
local c = s:connect("127.0.0.1:9990")
|
||||
local sent = s:send("show servers state\n")
|
||||
local content,err = s:receive("*a")
|
||||
s:close()
|
||||
|
||||
if content ~= nil then
|
||||
if #content>0 then
|
||||
|
@ -151,6 +151,7 @@ frontend https from {{ haproxy.config.namespace }}
|
||||
.endif
|
||||
mode http
|
||||
option httplog
|
||||
option http-buffer-request
|
||||
{% for name, service in haproxy.config.spoe.items() %}
|
||||
filter spoe engine {{ name }} config {{ haproxy.config.dir }}/spoe.cfg
|
||||
{%- endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user