Add global settings for account service's Nostr keys

This commit is contained in:
2024-03-31 12:10:04 +03:00
parent 3f90a011c4
commit 46b4723999

View File

@@ -162,6 +162,12 @@ class Setting < RailsSettings::Base
field :nostr_enabled, type: :boolean, default: false
field :nostr_private_key, type: :string,
default: ENV["NOSTR_PRIVATE_KEY"].presence
field :nostr_public_key, type: :string,
default: ENV["NOSTR_PUBLIC_KEY"].presence
#
# OpenCollective
#