updated haproxy state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-06-10 10:02:59 +02:00
parent e3166ceb65
commit 8067c8abd2
3 changed files with 7 additions and 4 deletions

View File

@ -56,7 +56,6 @@ haproxy:
- name: scripts/collector.lua - name: scripts/collector.lua
lib: false lib: false
- name: scripts/weight.lua - name: scripts/weight.lua
enabled: false
lib: false lib: false
args: args:
- 5 - 5
@ -67,7 +66,7 @@ haproxy:
namespace: paulbsd namespace: paulbsd
user: haproxy user: haproxy
group: haproxy group: haproxy
servername: "High-performance Web Server 1.0" servername: FAProxy (Fucking Awesome Proxy)
http2: true http2: true
defaults: defaults:
#log: global #log: global

View File

@ -13,8 +13,11 @@ function create_state()
try = try+1 try = try+1
end end
local a = io.popen('echo "show servers state" | socat tcp-connect:127.0.0.1:9990 -') local s = core.tcp()
local content = a:read("*a") 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 ~= nil then
if #content>0 then if #content>0 then

View File

@ -151,6 +151,7 @@ frontend https from {{ haproxy.config.namespace }}
.endif .endif
mode http mode http
option httplog option httplog
option http-buffer-request
{% for name, service in haproxy.config.spoe.items() %} {% for name, service in haproxy.config.spoe.items() %}
filter spoe engine {{ name }} config {{ haproxy.config.dir }}/spoe.cfg filter spoe engine {{ name }} config {{ haproxy.config.dir }}/spoe.cfg
{%- endfor %} {%- endfor %}