Add config for lndhub postgres/admin
This commit is contained in:
parent
d9e767298b
commit
43f133ebd7
10
.env.example
10
.env.example
@ -3,11 +3,17 @@ LDAP_PORT=389
|
|||||||
LDAP_ADMIN_PASSWORD=passthebutter
|
LDAP_ADMIN_PASSWORD=passthebutter
|
||||||
LDAP_SUFFIX="dc=kosmos,dc=org"
|
LDAP_SUFFIX="dc=kosmos,dc=org"
|
||||||
|
|
||||||
|
WEBHOOKS_ALLOWED_IPS='10.1.1.163'
|
||||||
|
|
||||||
EJABBERD_API_URL='https://xmpp.kosmos.org/api'
|
EJABBERD_API_URL='https://xmpp.kosmos.org/api'
|
||||||
|
|
||||||
BTCPAY_API_URL='http://localhost:23001/api/v1'
|
BTCPAY_API_URL='http://localhost:23001/api/v1'
|
||||||
|
|
||||||
LNDHUB_API_URL='http://localhost:3023'
|
LNDHUB_API_URL='http://localhost:3023'
|
||||||
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
||||||
|
LNDHUB_ADMIN_UI=true
|
||||||
WEBHOOKS_ALLOWED_IPS='10.1.1.163'
|
LNDHUB_PG_HOST=localhost
|
||||||
|
LNDHUB_PG_PORT=5432
|
||||||
|
LNDHUB_PG_DATABASE=lndhub
|
||||||
|
LNDHUB_PG_USERNAME=lndhub
|
||||||
|
LNDHUB_PG_PASSWORD=''
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
EJABBERD_API_URL='https://xmpp.kosmos.org:5443/api'
|
|
||||||
|
|
||||||
BTCPAY_API_URL='http://10.1.1.163:23001/api/v1'
|
|
||||||
|
|
||||||
LNDHUB_LEGACY_API_URL='http://10.1.1.163:3026'
|
|
||||||
LNDHUB_API_URL='http://10.1.1.163:3026'
|
|
||||||
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
|
||||||
|
|
||||||
WEBHOOKS_ALLOWED_IPS='10.1.1.163'
|
|
@ -13,9 +13,15 @@ development:
|
|||||||
primary:
|
primary:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: db/development.sqlite3
|
database: db/development.sqlite3
|
||||||
# lndhub:
|
lndhub:
|
||||||
# <<: *default
|
<<: *default
|
||||||
# database: db/lndhub.sqlite3
|
adapter: postgresql
|
||||||
|
database_tasks: false
|
||||||
|
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
||||||
|
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
||||||
|
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
||||||
|
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
||||||
|
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
@ -42,8 +48,8 @@ production:
|
|||||||
<<: *default
|
<<: *default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
database_tasks: false
|
database_tasks: false
|
||||||
database: lndhub
|
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
||||||
port: 5432
|
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
||||||
host: <%= Rails.application.credentials.postgres[:host] rescue nil %>
|
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
||||||
username: <%= Rails.application.credentials.postgres[:username] rescue nil %>
|
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
||||||
password: <%= Rails.application.credentials.postgres[:password] rescue nil %>
|
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user