59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
<h3>Nostr</h3>
|
|
<ul role="list">
|
|
<%= render FormElements::FieldsetToggleComponent.new(
|
|
form: f,
|
|
attribute: :nostr_enabled,
|
|
enabled: Setting.nostr_enabled?,
|
|
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"
|
|
) %>
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :nostr_public_key_primary_domain,
|
|
title: "Public key for primary domain (NIP-05)",
|
|
description: "(optional) A different pubkey to announce for the _@#{Setting.primary_domain} Nostr address"
|
|
) %>
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :nostr_relay_url,
|
|
title: "Relay URL",
|
|
description: "Websockets URL of a relay associated with #{Setting.primary_domain}"
|
|
) %>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h3>Zaps</h3>
|
|
<ul role="list">
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :nostr_zaps_relay_limit,
|
|
title: "Relay limit",
|
|
description: "The maximum number of sender-defined relays to try to publish zap receipts to"
|
|
) %>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h3>Onboarding</h3>
|
|
<ul role="list">
|
|
<%= render FormElements::FieldsetComponent.new(
|
|
title: "Discovery relays",
|
|
description: "Used to discover a user's published relay list and/or profile"
|
|
) do %>
|
|
<%= f.text_area :nostr_discovery_relays,
|
|
value: Setting.nostr_discovery_relays.join("\n"),
|
|
class: "h-44 w-80" %>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|