From bc4308283949ce2d7470f1ce9545282042e7754a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 4 Apr 2024 19:16:26 +0300 Subject: [PATCH] Add admin settings for nostr keys --- app/views/admin/settings/services/_nostr.html.erb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/views/admin/settings/services/_nostr.html.erb b/app/views/admin/settings/services/_nostr.html.erb index 664d089..c4f2182 100644 --- a/app/views/admin/settings/services/_nostr.html.erb +++ b/app/views/admin/settings/services/_nostr.html.erb @@ -7,4 +7,17 @@ title: "Enable Nostr integration (experimental)", description: "Allow adding nostr pubkeys and resolve user addresses via NIP-05" ) %> +<% if Setting.nostr_enabled? %> + <%= render FormElements::FieldsetResettableSettingComponent.new( + key: :nostr_private_key, + type: :password, + title: "Private key", + description: "The private key of the accounts service, used when publishing events (e.g. zap receipts)" + ) %> + <%= render FormElements::FieldsetResettableSettingComponent.new( + key: :nostr_public_key, + title: "Public key", + description: "The corresponding public key of the accounts service" + ) %> +<% end %>