From 6b855a5b29f98426a4f651fd49e0dfd8d74c6fa2 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 23 Oct 2023 15:42:38 +1100 Subject: [PATCH] fix: Fix wordpress rewrites for hip2 --- worker/wp.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worker/wp.sh b/worker/wp.sh index c0cc7f0..2a3e7b3 100644 --- a/worker/wp.sh +++ b/worker/wp.sh @@ -89,6 +89,12 @@ printf "server { sub_filter_once on; } + location = /.well-known/wallets/HNS { + proxy_pass $URL; + proxy_set_header Host \$http_host; + rewrite ^(.*)$ \$1/ break; + } + listen 443 ssl; ssl_certificate /etc/ssl/$DOMAIN.crt;