values
This commit is contained in:
parent
eb96025942
commit
2fcbdc79e7
6 changed files with 13 additions and 9 deletions
|
|
@ -9,7 +9,11 @@
|
|||
#LND_CERT_PATH=~/.lnd/tls.cert
|
||||
#LND_MACAROON_PATH=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
||||
|
||||
LIQUIDITY_PROVIDER_PUB=
|
||||
#BOOTSTRAP_PEER
|
||||
# A trusted peer that will hold a node-level account until channel automation becomes affordable
|
||||
# The developer is used by default or you may specify your own
|
||||
# To disable this feature entirely overwrite the env with "null"
|
||||
#LIQUIDITY_PROVIDER_PUB=null
|
||||
|
||||
#DB
|
||||
#DATABASE_FILE=db.sqlite
|
||||
|
|
@ -57,7 +61,7 @@ LSP_MAX_FEE_BPS=100
|
|||
|
||||
#NOSTR
|
||||
# Default relay may become rate-limited without a paid subscription
|
||||
#NOSTR_RELAYS=wss://strfry.shock.network
|
||||
#NOSTR_RELAYS=wss://relay.lightning.pub
|
||||
|
||||
#LNURL
|
||||
# Optional
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "lightning.pub",
|
||||
"name": "lnpub",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"description": "A Nostr based account system and management platform for nodes on Bitcoin's Lightning Network",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"clean": "rimraf build",
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"author": "",
|
||||
"type": "module",
|
||||
"license": "ISC",
|
||||
"license": "Affero GPLv3",
|
||||
"bugs": {
|
||||
"url": "https://github.com/shocknet/Lightning.Pub/issues"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export type LiquiditySettings = {
|
|||
}
|
||||
export const LoadLiquiditySettingsFromEnv = (): LiquiditySettings => {
|
||||
const lspSettings = LoadLSPSettingsFromEnv()
|
||||
const liquidityProviderPub = process.env.LIQUIDITY_PROVIDER_PUB || ""
|
||||
const liquidityProviderPub = process.env.LIQUIDITY_PROVIDER_PUB === "null" ? "" : (process.env.LIQUIDITY_PROVIDER_PUB || "76ed45f00cea7bac59d8d0b7d204848f5319d7b96c140ffb6fcbaaab0a13d44e")
|
||||
return { lspSettings, liquidityProviderPub, useOnlyLiquidityProvider: false }
|
||||
}
|
||||
export class LiquidityManager {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const getEnvOrDefault = (name: string, defaultValue: string): string => {
|
|||
}
|
||||
|
||||
export const LoadNosrtSettingsFromEnv = (test = false) => {
|
||||
const relaysEnv = getEnvOrDefault("NOSTR_RELAYS", "wss://strfry.shock.network");
|
||||
const relaysEnv = getEnvOrDefault("NOSTR_RELAYS", "wss://relay.lightning.pub");
|
||||
return {
|
||||
relays: relaysEnv.split(' ')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ export class Wizard {
|
|||
if (automateLiquidityIndex === -1) {
|
||||
toMerge.push(`LIQUIDITY_PROVIDER_PUB=${pendingConfig.automateLiquidity ? defaultProviderPub : ""}`)
|
||||
} else {
|
||||
envFileContent[automateLiquidityIndex] = `LIQUIDITY_PROVIDER_PUB=`
|
||||
envFileContent[automateLiquidityIndex] = `LIQUIDITY_PROVIDER_PUB=null`
|
||||
}
|
||||
|
||||
const pushBackupsToNostrIndex = envFileContent.findIndex(line => line.startsWith('PUSH_BACKUPS_TO_NOSTR'))
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ INCOMING_INVOICE_FEE_USER_BPS=0 #defined by app this is just default
|
|||
OUTGOING_INVOICE_FEE_USER_BPS=60 #defined by app this is just default
|
||||
TX_FEE_INTERNAL_ROOT_BPS=60 #this is applied only to withdrawls from application wallets
|
||||
TX_FEE_INTERNAL_USER_BPS=60 #defined by app this is just default
|
||||
NOSTR_RELAYS=wss://strfry.shock.network
|
||||
NOSTR_RELAYS=wss://relay.lightning.pub
|
||||
SERVICE_URL=http://localhost:8080
|
||||
ADMIN_TOKEN=thisisadmin
|
||||
PORT=8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue