Merge branch 'main' of https://github.com/boltcard/boltcard into main

This commit is contained in:
Peter Rounce 2023-01-29 10:33:42 +00:00
commit 38050c8785

View file

@ -1,20 +1,29 @@
# Settings # Settings
The database connection settings are in the system environment variables. The database connection settings are in the system environment variables.
All other settings are in the database in a `settings` table. Other settings are in the database in a `settings` table.
- LOG_LEVEL Here are the descriptions of values available to use in the `settings` table:
- AES_DECRYPT_KEY
- HOST_DOMAIN | Name | Value | Description |
- MIN_WITHDRAW_SATS | --- | --- | --- |
- MAX_WITHDRAW_SATS | LOG_LEVEL | DEBUG | system logs are verbose to enable easier debug |
- LN_HOST | | PRODUCTION | system logs are minimal |
- LN_PORT | AES_DECRYPT_KEY | | hex encoded 128 bit AES key |
- LN_TLS_FILE | HOST_DOMAIN | yourdomain.com | the domain for hosting lnurlw & lnurlp services |
- LN_MACAROON_FILE | MIN_WITHDRAW_SATS | 1 | minimum satoshis for lnurlw response |
- FEE_LIMIT_SAT | MAX_WITHDRAW_SATS | 1000000 | maximum satoshis for lnurlw response |
- FEE_LIMIT_PERCENT | LN_HOST | your_lnd_node.io | LND node gRPC domain |
- LN_TESTNODE | LN_PORT | 9001 | LND node gRPC port |
- FUNCTION_LNURLW | LN_TLS_FILE | /home/ubuntu/boltcard/tls.cert | absolute path to your LND TLC certificate |
- FUNCTION_LNURLP | LN_MACAROON_FILE | /home/ubuntu/boltcard/boltcard.macaroon | absolute path to your LND macaroon |
- FUNCTION_EMAIL | FEE_LIMIT_SAT | 10 | the base fee limit amount for every invoice payment |
| FEE_LIMIT_PERCENT | 0.5 | the percentage fee limit amount added to the base fee limit amount |
| LN_TESTNODE | | lightning node pubkey for allowing only the defined test node |
| FUNCTION_LNURLW | ENABLE | system level switch for LNURLw (bolt card) services |
| FUNCTION_LNURLP | DISABLE | system level switch for LNURLp (lightning address) services |
| FUNCTION_EMAIL | DISABLE | system level switch for email updates on credits & debits |
| AWS_SES_ID | | Amazon Web Services - Simple Email Service - access id |
| AWS_SES_SECRET | | Amazon Web Services - Simple Email Service - access secret |
| AWS_SES_EMAIL_FROM | | Amazon Web Services - Simple Email Service - email from field |
| EMAIL_MAX_TXS | | maximum number of transactions to include in the email body |