Make ports 80 and 443 compatible with UFW

This commit is contained in:
2026-03-31 17:07:38 +03:00
Unverified
parent 3caadde6ff
commit 2a5a539126
4 changed files with 588 additions and 130 deletions
+26
View File
@@ -0,0 +1,26 @@
global
maxconn 4096
# Start as root to bind 80/443, then drop privileges.
user haproxy
group haproxy
defaults
no log
mode tcp
timeout connect 5s
timeout client 2m
timeout server 2m
frontend fe_http_80
bind 0.0.0.0:80
default_backend be_caddy_http
backend be_caddy_http
server caddy_http 127.0.0.1:8080 send-proxy-v2
frontend fe_https_443
bind 0.0.0.0:443
default_backend be_caddy_https
backend be_caddy_https
server caddy_https 127.0.0.1:8443 send-proxy-v2