From fd9636441bd0fdef503d614e750baaa6874e8351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 17 Nov 2025 10:47:50 +0100 Subject: [PATCH] Fix URL matcher for substr (vs strfry) I wasn't able to reach https://nostr.kosmos.org/nodeinfo/2.1, which I stumbled upon in an upstream PR. This one only matches exactly the paths that substr is serving. Tested/running in production. --- site-cookbooks/kosmos_strfry/templates/nginx_conf_strfry.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos_strfry/templates/nginx_conf_strfry.erb b/site-cookbooks/kosmos_strfry/templates/nginx_conf_strfry.erb index a1fd251..2bd8f4c 100644 --- a/site-cookbooks/kosmos_strfry/templates/nginx_conf_strfry.erb +++ b/site-cookbooks/kosmos_strfry/templates/nginx_conf_strfry.erb @@ -25,7 +25,7 @@ server { alias /var/www/assets.kosmos.org/site/img/favicon.ico; } - location ~* ^/[@~n]|^/assets { + location ~ ^/(?:@|~|npub|naddr|nprofile|assets/) { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://_substr;