Upload alternative reverse proxy config.

Haproxy can terminate SSL and forward HTTP requests as a drop-in replacement for nginx. Here is a very minimal configuration file for a single backend.

Signed-off-by: mharb <mharb@noreply.localhost>
This commit is contained in:
mharb 2023-10-03 13:34:07 +00:00
parent c06c39871e
commit e3478a6748

View File

@ -0,0 +1,24 @@
global
log stdout local0
defaults
log global
mode http
option forwardfor
option http-buffer-request
option httplog
option logasap
timeout client 60000
timeout connect 60000
timeout server 60000
frontend proxy
bind *:443 ssl crt /path/to/ssl/cert/bundle.pem ssl-min-ver TLSv1.3
bind *:80
default_backend code-server
acl 4XX status 400:499
http-request redirect scheme https unless { ssl_fc }
http-request silent-drop if 4XX
backend code-server
server code-server code-server:8443 check