multi mode

This commit is contained in:
Mateusz Gruszczyński
2026-07-31 10:10:19 +02:00
parent e39a1154e6
commit f7afee886b
25 changed files with 910 additions and 212 deletions
+26
View File
@@ -0,0 +1,26 @@
frontend http_front
bind *:443 ssl crt /etc/haproxy/certs/example.pem
mode http
acl rustpad_path path_beg /f/
use_backend rustpad_backend if rustpad_path
http-request return status 404 \
content-type "text/plain" \
string "Not Found" unless rustpad_path
backend rustpad_backend
mode http
http-request set-header X-Forwarded-Proto https
http-request del-header Cookie
http-request del-header Authorization
http-response del-header Set-Cookie
http-response return status 404 \
content-type "text/plain" \
string "Not Found" if { status 404 }
server rustpad rustpad:3000 check