Move lndhub admin token to env var/setting

This commit is contained in:
Râu Cao
2023-09-04 15:36:22 +02:00
parent 8349ca5e12
commit 725fd2e5ea
3 changed files with 33 additions and 24 deletions

View File

@@ -113,6 +113,9 @@ class Setting < RailsSettings::Base
field :lndhub_enabled, type: :boolean,
default: (ENV["LNDHUB_API_URL"].present?.to_s || false)
field :lndhub_admin_token, type: :string,
default: ENV["LNDHUB_ADMIN_TOKEN"].presence
field :lndhub_admin_enabled, type: :boolean,
default: (ENV["LNDHUB_ADMIN_UI"] || false)