feat: add local pki, https ingress and api mtls

This commit is contained in:
2026-11-30 16:36:13 +03:00
parent f736ff1da4
commit ea50b60f7f
7 changed files with 251 additions and 16 deletions
+11 -3
View File
@@ -1,11 +1,13 @@
global
log stdout format raw local0 info
maxconn 2000
ssl-default-bind-options ssl-min-ver TLSv1.2
ssl-default-server-options ssl-min-ver TLSv1.2
defaults
mode http
log global
option httplog
log-format "%ci:%cp %ft %b/%s %ST %Tt"
option dontlognull
timeout connect 1s
timeout client 30s
@@ -31,13 +33,19 @@ resolvers docker
accepted_payload_size 8192
frontend public
bind :8080
bind :8443 ssl crt /run/tls/ingress.pem
default_backend api
frontend local-health
bind 127.0.0.1:8404
no log
http-request return status 200 if { nbsrv(api) gt 0 }
http-request return status 503
backend api
balance roundrobin
http-request set-timeout server 60s if { method POST } { path_reg ^/api/v1/chats/[^/]+/attachments$ }
option httpchk GET /health/core
http-check expect status 200
default-server check inter 1s fall 2 rise 2 resolvers docker resolve-prefer ipv4 init-addr none
server-template api 1-4 api:8080
server-template api 1-4 api:8080 ssl ca-file /run/tls/ca.crt verify required verifyhost api sni str(api) check-sni api crt /run/tls/client.pem