mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Make ports 80 and 443 compatible with UFW
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user