2021-12-29 18:08:41 -05:00
RTL allows the user to configure and control specific application parameters for app customization and integration.< br / >
The parameters can be configured via RTL-Config.json file or through environment variables defined at the OS level. Required < br / >
parameters have `default` values for initial setup and can be updated after RTL server initial start.< br />
< br / >
### RTL-Config.json<br />
```
2020-01-20 11:15:04 -05:00
{
2020-01-26 19:34:23 -05:00
"multiPass": "< The password in plain text , default ' password ' , Required > ",
"port": "< port number for the rtl node server , default ' 3000 ' , Required > ",
2021-06-20 17:29:11 -04:00
"host": "< host for the rtl node server , default ' all IPs ' , Optional > ",
2020-01-26 19:34:23 -05:00
"defaultNodeIndex": < Default index to load when rtl server starts , default 1 , Optional > ,
2023-02-17 17:33:33 -08:00
"dbDirectoryPath": "< Complete path of the folder where rtl database file should be saved , defults to RTL root , Optional > ",
2020-01-20 11:15:04 -05:00
"SSO": {
2023-05-24 13:15:16 -07:00
"rtlSSO": < parameter to turn SSO off / on . Allowed values - 1 ( single sign on via an external cookie ) , 0 ( stand alone RTL authentication ) , Required > ,
2020-01-26 19:34:23 -05:00
"rtlCookiePath": "< Full path of the cookie file including the file name . The application url needs to pass the value from this cookie file as query param ' access-key ' for the SSO authentication to work , Required if SSO = 1 else empty ( Optional ) > ",
"logoutRedirectLink": "< URL to re-direct to after logout / timeout from RTL , Required if SSO = 1 else empty ( Optional ) > "
2020-01-20 11:15:04 -05:00
},
"nodes": [
{
2020-01-26 19:34:23 -05:00
"index": < Incremental node indices starting from 1 , Required > ,
2023-05-24 13:15:16 -07:00
"lnNode": "< Node name to uniquely identify the node in the UI , Required > ",
"lnImplementation": "< LNP implementation , Allowed values LND / CLN / ECL , Required > ",
2024-06-10 12:40:37 -07:00
"authentication": {
2023-12-05 20:32:05 -08:00
"macaroonPath": "< Path for the folder containing ' admin . macaroon ' for LND node , Required for LND > ",
"runePath": "< Complete path including filename for CLN rune for the node , Required for CLN > ",
"lnApiPassword": "< Password to be used for ECL API authentication . Mandatory only for ECL if the configPath is missing > "
2020-12-20 18:36:04 -05:00
"swapMacaroonPath": "< Path for the folder containing ' loop . macaroon ' ( LND ) , Required for LND Loop > ",
2021-02-21 14:02:31 -05:00
"boltzMacaroonPath": "< Path for the folder containing ' admin . macaroon ' ( Boltz ) , Required for Boltz Swaps > ",
2022-05-01 13:35:20 -04:00
"configPath": "< Full path of the lnd . conf / core lightning config / eclair . conf file including the file name , if present locally , Optional , only mandatory for ECL if the lnApiPassword is missing > ",
2020-01-20 11:15:04 -05:00
},
2024-06-10 12:40:37 -07:00
"settings": {
2023-05-24 13:15:16 -07:00
"userPersona": "< User persona to tailor the data on UI . Allowed values MERCHANT / OPERATOR . Default MERCHANT , Optional > ",
"themeMode": "< Theme modes , Allowed values DAY , NIGHT . Default DAY , Optional > ",
"themeColor": "< Theme colors , Allowed values PURPLE , TEAL , INDIGO , PINK , YELLOW . Default PURPLE , Optional > ",
2020-01-26 19:34:23 -05:00
"channelBackupPath": "< Path to save channel backup file . Only for LND implementation , Default < RTL root > \backup\node-1, Optional>",
"bitcoindConfigPath": "< Path of bitcoind . conf path if available locally > ",
2021-08-28 17:03:18 -04:00
"logLevel": < logging levels , will log in accordance with the logLevel value provided , Allowed values ERROR , WARN , INFO , DEBUG > ,
2023-05-24 13:15:16 -07:00
"fiatConversion": < parameter to turn fiat conversion off / on . Allowed values - true , false , default false , Optional > ,
"currencyUnit": "< Optional: Fiat current Unit for currency conversion , default ' USD ' , Optional > ",
2022-11-15 19:17:23 -08:00
"unannouncedChannels": < parameter to turn off / on setting for opening announced Channels , default false , Optional >
2023-05-24 13:15:16 -07:00
"lnServerUrl": "< Service url for LND / Core Lightning REST APIs for the node , e . g . https: / / 192 . 168 . 0 . 1:8080 OR https: / / 192 . 168 . 0 . 1:3001 OR http: / / 192 . 168 . 0 . 1:8080 . Default ' https: / / 127 . 0 . 0 . 1:8080 ' , Optional >
2022-12-15 15:09:08 -08:00
"swapServerUrl": "< Service url for swap server REST APIs for the node , e . g . https: / / 127 . 0 . 0 . 1:8081 , Optional > ",
2024-06-10 12:40:37 -07:00
"boltzServerUrl": "< Service url for boltz server REST APIs for the node , e . g . https: / / 127 . 0 . 0 . 1:9003 , Optional > ",
"blockExplorerUrl": "< url for local or centralized block explorer . e . g . https: / / mempool . space > "
2020-01-20 11:15:04 -05:00
}
}
]
}
2021-12-29 18:08:41 -05:00
```
< br / >
### Environment variables<br />
The environment variable can also be used for all of the above configurations except the UI settings.< br / >
If the environment variables are set, it will take precedence over the parameters in the RTL-Config.json file.< br / >
< br / >
2023-05-24 13:15:16 -07:00
PORT (port number for the rtl node server, default 3000, Optional)< br / >
2021-12-29 18:08:41 -05:00
HOST (host for the rtl node server, default localhost, Optional)< br / >
2023-02-17 17:33:33 -08:00
DB_DIRECTORY_PATH (Path for the folder where rtl database file should be saved, default RTL root directory, Optional)
2021-12-29 18:08:41 -05:00
APP_PASSWORD (Plaintext password to be provided by the parent container, NOT suggested for standalone RTL applications, to be used by Umbrel) (Optional)< br / >
2023-05-24 13:15:16 -07:00
LN_IMPLEMENTATION (LND/CLN/ECL. Default 'LND', Optional)< br / >
LN_SERVER_URL (LN server URL for LNP REST APIs, default https://127.0.0.1:8080) (Optional)< br / >
2022-12-15 15:09:08 -08:00
SWAP_SERVER_URL (Swap server URL for REST APIs, default http://127.0.0.1:8081) (Optional)< br / >
BOLTZ_SERVER_URL (Boltz server URL for REST APIs, default http://127.0.0.1:9003) (Optional)< br / >
2022-05-01 13:35:20 -04:00
CONFIG_PATH (Full path of the LNP .conf file including the file name) (Optional for LND & CLN, Mandatory for ECL if LN_API_PASSWORD is undefined)< br / >
2023-12-05 20:32:05 -08:00
MACAROON_PATH (Path for the folder containing 'admin.macaroon' for LND, Required for LND)< br / >
RUNE_PATH (Complete path for the file containing 'rune' for CLN where the file should define the rune in 'LIGHTNING_RUNE="your-rune"' format, Required for CLN)< br / >
2021-12-29 18:08:41 -05:00
SWAP_MACAROON_PATH (Path for the folder containing Loop's 'loop.macaroon', optional)< br / >
BOLTZ_MACAROON_PATH (Path for the folder containing Boltz's 'admin.macaroon', optional)< br / >
2022-03-05 10:58:15 -05:00
RTL_SSO (1 - single sign on via an external cookie, 0 - stand alone RTL authentication, Required)< br / >
2021-12-29 18:08:41 -05:00
RTL_COOKIE_PATH (Full path of the cookie file including the file name, Required if RTL_SSO=1 else Optional)< br / >
LOGOUT_REDIRECT_LINK (URL to re-direct to after logout/timeout from RTL, Required if RTL_SSO=1 else Optional)< br / >
RTL_CONFIG_PATH (Path for the folder containing 'RTL-Config.json' file, Required)< br / >
BITCOIND_CONFIG_PATH (Full path of the bitcoind.conf file including the file name, Optional)< br / >
CHANNEL_BACKUP_PATH (Folder location for saving the channel backup files, valid for LND implementation only, Required if ln implementation=LND else Optional)< br / >
2022-05-01 13:35:20 -04:00
ENABLE_OFFERS (Boolean flag to enable the offers feature on core lighning, default false, optional)< br / >
2022-08-24 00:58:18 -07:00
ENABLE_PEERSWAP (Boolean flag to enable the peerswap feature on core lighning, default false, optional)< br / >
2021-12-29 18:08:41 -05:00
LN_API_PASSWORD (Password for Eclair implementation if the eclair.conf path is not available, Required if ln implementation=ECL & & config path is undefined)< br / >