26 lines
661 B
Plaintext
26 lines
661 B
Plaintext
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 |