From fa1940e9cb52db325e4ab9b786825e266db160f9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 5 Jan 2023 09:06:38 -0500 Subject: Enable nostr nip-5 verification --- Biz/Cloud/Web.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 069062e..3afc2ae 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -87,13 +87,15 @@ in # the nginx/cgit module puts a '/' at the end of 'location', so we need to # redirect '/git' to '/git/' "/git".return = "301 https://$host/git/"; + # nostr nip-5 verification + "/.well-known/nostr.json".return = "200 '${builtins.toJSON { names.bensima = "2fa4b9ba71b6dab17c4723745bb7850dfdafcb6ae1a8642f76f9c64fa5f43436";}}'"; # disabled for nixpert test - #"/" = { - # root = "/var/web/simatime.com"; - # extraConfig = '' - # autoindex on; - # ''; - #}; + "/" = { + root = "/var/web/simatime.com"; + extraConfig = '' + autoindex on; + ''; + }; # serve /~$USER paths "~ ^/~(.+?)(/.*)?$" = { alias = "/var/web/$1$2"; -- cgit v1.2.3