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.
This commit is contained in:
Râu Cao 2025-11-17 10:47:50 +01:00
parent aade479e5b
commit fd9636441b
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -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;