6 changed files with 111 additions and 33 deletions
@ -0,0 +1,10 @@ |
|||||||
|
# NIP-05: browsers and verifiers request |
||||||
|
# GET https://<site>/.well-known/nostr.json?name=<local-part> |
||||||
|
# Symfony route: SeoController::nostrWellKnown (name: nostr_well_known) |
||||||
|
# |
||||||
|
# Include a location for this *before* any broad rule that blocks or mishandles |
||||||
|
# `/.well-known/` (e.g. `location ^~ /.well-known/ { return 404; }`). |
||||||
|
|
||||||
|
location = /.well-known/nostr.json { |
||||||
|
try_files $uri /index.php$is_args$args; |
||||||
|
} |
||||||
@ -0,0 +1,18 @@ |
|||||||
|
# See https://symfony.com/doc/current/setup/web_server_configuration.html |
||||||
|
# Required so routes like `/.well-known/nostr.json` (NIP-05) are handled by index.php. |
||||||
|
|
||||||
|
DirectoryIndex index.php |
||||||
|
|
||||||
|
<IfModule mod_negotiation.c> |
||||||
|
Options -MultiViews |
||||||
|
</IfModule> |
||||||
|
|
||||||
|
<IfModule mod_rewrite.c> |
||||||
|
RewriteEngine On |
||||||
|
# Authorization header (e.g. API) |
||||||
|
RewriteCond %{HTTP:Authorization} .+ |
||||||
|
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0] |
||||||
|
# Serve existing files directly; all other requests → front controller |
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f |
||||||
|
RewriteRule ^ index.php [QSA,L] |
||||||
|
</IfModule> |
||||||
Loading…
Reference in new issue