Add admin settings for nostr keys

This commit is contained in:
Râu Cao 2024-04-04 19:16:26 +03:00
parent 1256b3c00a
commit 99ef788652
Signed by: raucao
GPG Key ID: 37036C356E56CC51
1 changed files with 13 additions and 0 deletions

View File

@ -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 %>
</ul>