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
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

View File

@ -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

View File

@ -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 %}