From f4d2b2a9febaaaf231751fc66c3b7b7739fe1941 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 28 Jan 2025 23:37:25 -0500 Subject: [PATCH] Add Nostr NIP-05 verification --- modules/hosts/nixos/hetznix01/post-install/nginx.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/hosts/nixos/hetznix01/post-install/nginx.nix b/modules/hosts/nixos/hetznix01/post-install/nginx.nix index 2420bdb..33dbda6 100644 --- a/modules/hosts/nixos/hetznix01/post-install/nginx.nix +++ b/modules/hosts/nixos/hetznix01/post-install/nginx.nix @@ -77,6 +77,15 @@ in { add_header Access-Control-Allow-Origin *; ''; }; + "/.well-known/nostr.json" = { + return = '' + 200 '{"names": {"genebean": "dba168fc95fdbd94b40096f4a6db1a296c0e85c4231bfc9226fca5b7fcc3e5ca"}}' + ''; + extraConfig = '' + default_type application/json; + add_header Access-Control-Allow-Origin *; + ''; + }; }; }; "albyhub.${domain}" = {