v0.2.93
This commit is contained in:
1 parent
b85201889e
commit
b035648b81
21 files changed
+318
-73
No files matched your search
@@ -1,26 +1,21 @@
|
||||
frontend http_front
|
||||
# Merge with your existing TLS frontend; route by hostname, not URL path.
|
||||
# Set FILES_PUBLIC_URL=files.note.example.com in RustPad.
|
||||
# The example assumes the main site shares the same 443 frontend.
|
||||
frontend https_front
|
||||
bind *:443 ssl crt /etc/haproxy/certs/example.pem
|
||||
mode http
|
||||
acl files_host hdr(host) -i files.note.example.com
|
||||
use_backend rustpad_files if files_host
|
||||
default_backend rustpad_app
|
||||
|
||||
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
|
||||
backend rustpad_files
|
||||
mode http
|
||||
|
||||
option httpchk GET /health
|
||||
http-check expect status 200
|
||||
http-request set-header X-Forwarded-Proto https
|
||||
http-request del-header Cookie
|
||||
http-request del-header Authorization
|
||||
server rustpad-files rustpad:3001 check
|
||||
|
||||
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
|
||||
backend rustpad_app
|
||||
mode http
|
||||
http-request set-header X-Forwarded-Proto https
|
||||
server rustpad-app rustpad:3000 check
|
||||
Reference in new issue
Block a user