diff options
author | Ben Sima <ben@bsima.me> | 2023-01-05 09:06:38 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-01-05 09:06:38 -0500 |
commit | fa1940e9cb52db325e4ab9b786825e266db160f9 (patch) | |
tree | 258ac15c2e33b26da5eb7c9b8a757ff0a8230db3 | |
parent | 47cd029db307d281d66188c62238a91f69170fcd (diff) |
Enable nostr nip-5 verification
-rw-r--r-- | Biz/Cloud/Web.nix | 14 | ||||
-rw-r--r-- | Biz/Nixpert.nix | 2 |
2 files changed, 8 insertions, 8 deletions
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"; diff --git a/Biz/Nixpert.nix b/Biz/Nixpert.nix index 6e9d392..d009182 100644 --- a/Biz/Nixpert.nix +++ b/Biz/Nixpert.nix @@ -121,8 +121,6 @@ in { ''; }; - services.nginx.virtualHosts."simatime.com".locations."/".return = "301 https://nixpert.chat"; - services.nginx.virtualHosts."nixpert.chat" = { forceSSL = true; enableACME = true; |