better env example

This commit is contained in:
shocknet-justin 2025-12-18 00:48:25 -05:00
parent 766b5fd0d7
commit 5cb1cd509d

View file

@ -2,6 +2,7 @@
# Copy this file as .env in the Pub folder and uncomment the desired settings to override defaults # Copy this file as .env in the Pub folder and uncomment the desired settings to override defaults
# Alternatively, these settings can be passed as environment variables at startup # Alternatively, these settings can be passed as environment variables at startup
#LND_CONNECTION #LND_CONNECTION
# Defaults typical for straight Linux # Defaults typical for straight Linux
# Containers, Mac and Windows may need more detailed paths # Containers, Mac and Windows may need more detailed paths
@ -40,13 +41,17 @@
#LOCALHOST #LOCALHOST
# For REST Management
#ADMIN_TOKEN= #ADMIN_TOKEN=
#PORT=1776 #PORT=1776
#JWT_SECRET= #JWT_SECRET=
#PUSH_SERVICE
# For Wallet notifs via FCM
#SHOCK_PUSH_URL= #SHOCK_PUSH_URL=
#Lightning Address Bridge #LNA Bridge
# Tell wallets where they can get a noffer-based Lightning Address
#BRIDGE_URL=https://shockwallet.app #BRIDGE_URL=https://shockwallet.app
#LIGHTNING #LIGHTNING
@ -54,39 +59,26 @@
# Routing Fee Limit: What Pub allows LND to spend (max of BPS*amount or floor) # Routing Fee Limit: What Pub allows LND to spend (max of BPS*amount or floor)
# Routing fee limit must be <= service fee (validated at startup to ensure spread) # Routing fee limit must be <= service fee (validated at startup to ensure spread)
# BPS are basis points, 100 BPS = 1% # BPS are basis points, 100 BPS = 1%
#OUTGOING_INVOICE_FEE_USER_BPS=0 #SERVICE_FEE_BPS=60
#OUTBOUND_FEE_FLOOR_SATS=10 #ROUTING_FEE_LIMIT_BPS=50
#ROUTING_FEE_LIMIT_BPS=0 #SERVICE_FEE_FLOOR_SATS=10
#ROUTING_FEE_FLOOR_SATS=10 #ROUTING_FEE_FLOOR_SATS=5
# If the back-end doesn't have adequate channel capacity, buy one from an LSP
# Will execute when it costs less than 1% of balance and uses a trusted peer
#BOOTSTRAP=1
#LSP
OLYMPUS_LSP_URL=https://lsps1.lnolymp.us/api/v1
VOLTAGE_LSP_URL=https://lsp.voltageapi.com/api/v1
FLASHSATS_LSP_URL=https://lsp.flashsats.xyz/lsp/channel
LSP_CHANNEL_THRESHOLD=1000000
LSP_MAX_FEE_BPS=100
#ROOT_FEES #ROOT_FEES
# Applied to either debits or credits and sent to an admin account # Internal transaction fees (placeholder, bugged, do not use)
# BPS are basis points, 100 BPS = 1% #TX_FEE_INTERNAL_ROOT_BPS=0
#INCOMING_CHAIN_FEE_ROOT_BPS=0
#INCOMING_INVOICE_FEE_ROOT_BPS=0
# Chain spends are currently unstable and thus disabled, do not use until further notice
#OUTGOING_CHAIN_FEE_ROOT_BPS=60
# Outgoing Invoice Fee must be >= Lightning Outbound Max Fee so admins don't incur losses on spends
#OUTGOING_INVOICE_FEE_ROOT_BPS=60
# Internal user fees bugged, do not use until further notice
#TX_FEE_INTERNAL_ROOT_BPS=0 #applied to inter-application txns
#APP_FEES #LSP
# An extra fee applied at the app level and sent to the application owner # If the back-end doesn't have adequate channel capacity, buy one from an LSP
#INCOMING_INVOICE_FEE_USER_BPS=0 #OLYMPUS_LSP_URL=https://lsps1.lnolymp.us/api/v1
#OUTGOING_INVOICE_FEE_USER_BPS=0 #FLASHSATS_LSP_URL=https://lsp.flashsats.xyz/lsp/channel
#TX_FEE_INTERNAL_USER_BPS=0 #LSP_CHANNEL_THRESHOLD=1000000
#LSP_MAX_FEE_BPS=100
# Use trusted peer until LSP costs less than ~1% of balance or threshold
#BOOTSTRAP=1
#NOSTR #NOSTR
# Default relay may become rate-limited without a paid subscription # Default relay may become rate-limited without a paid subscription
@ -96,9 +88,9 @@ LSP_MAX_FEE_BPS=100
#LNURL #LNURL
# Optional # Optional
# If undefined, LNURLs (including Lightning Address) will be disabled # If undefined, LNURLs will be disabled but wallets may still use bridge for Lightning Addresses
# To enable, add a reachable https endpoint for requests (or purchase a subscription) # To enable, add a reachable https endpoint for requests
# You also need an SSL reverse proxy from the domain to this local host # You also need an SSL reverse proxy from the domain to the Pub
# Read more at https://docs.shock.network # Read more at https://docs.shock.network
#SERVICE_URL=https://yourdomainhere.xyz #SERVICE_URL=https://yourdomainhere.xyz
#LNURL_META_TEXT=LNURL via Lightning.Pub #LNURL_META_TEXT=LNURL via Lightning.Pub
@ -109,7 +101,7 @@ LSP_MAX_FEE_BPS=100
# Read more at https://docs.shock.network # Read more at https://docs.shock.network
#SUBSCRIBER=1 #SUBSCRIBER=1
#DEV_OPTS #DEV
#MOCK_LND=false #MOCK_LND=false
#ALLOW_BALANCE_MIGRATION=false #ALLOW_BALANCE_MIGRATION=false
#MIGRATE_DB=false #MIGRATE_DB=false
@ -121,10 +113,8 @@ LSP_MAX_FEE_BPS=100
#SKIP_SANITY_CHECK=false #SKIP_SANITY_CHECK=false
# A read-only token that can be used with dashboard to view reports # A read-only token that can be used with dashboard to view reports
#METRICS_TOKEN= #METRICS_TOKEN=
# Disable outbound payments aka honeypot mode
#DISABLE_EXTERNAL_PAYMENTS=false
#ALLOW_RESET_METRICS_STORAGES=false #ALLOW_RESET_METRICS_STORAGES=false
ALLOW_HTTP_UPGRADE=false #ALLOW_HTTP_UPGRADE=false
#WATCHDOG SECURITY #WATCHDOG SECURITY
# A last line of defense against 0-day drainage attacks # A last line of defense against 0-day drainage attacks
@ -133,3 +123,5 @@ ALLOW_HTTP_UPGRADE=false
# Increase this values to add a spending buffer for non-Pub services sharing LND # Increase this values to add a spending buffer for non-Pub services sharing LND
# Max difference between users balance and LND balance at Pub startup # Max difference between users balance and LND balance at Pub startup
#WATCHDOG_MAX_DIFF_SATS=0 #WATCHDOG_MAX_DIFF_SATS=0
# Disable outbound payments aka honeypot mode
#DISABLE_EXTERNAL_PAYMENTS=false