From 1595ec783d1312206c0a1d7c66b5bfa1ff83f3a4 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 6 May 2023 14:43:30 -0500 Subject: [PATCH] docs: allow host header prefix matching, required for Damus compatibility --- docs/reverse-proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reverse-proxy.md b/docs/reverse-proxy.md index c5e0c14..e6c6d0d 100644 --- a/docs/reverse-proxy.md +++ b/docs/reverse-proxy.md @@ -29,7 +29,7 @@ frontend fe_prod bind :80 http-request set-header X-Forwarded-Proto https if { ssl_fc } redirect scheme https code 301 if !{ ssl_fc } - acl host_relay hdr(host) -i relay.example.com + acl host_relay hdr(host) -i -m beg relay.example.com use_backend relay if host_relay # HSTS (1 year) http-response set-header Strict-Transport-Security max-age=31536000