2019-02-17 21:40:27 +01:00
RTL allows the user to configure and control specific application parameters for app customization and integration.
2020-01-27 01:34:23 +01:00
The parameters can be configured via RTL-Config.json file or through environment variables defined at the OS level. Required
parameters have `default` values for initial setup and can be updated after RTL server initial start.
2019-02-17 21:40:27 +01:00
2020-01-20 17:15:04 +01:00
#### RTL-Config.json
{
2020-01-27 01:34:23 +01:00
"multiPass": "<The password in plain text, default 'password', Required>",
"port": "<port number for the rtl node server, default '3000', Required>",
2021-06-20 23:29:11 +02:00
"host": "<host for the rtl node server, default 'all IPs', Optional>",
2020-01-27 01:34:23 +01:00
"defaultNodeIndex": <Default index to load when rtl server starts, default 1, Optional>,
2020-01-20 17:15:04 +01:00
"SSO": {
2020-01-27 01:34:23 +01:00
"rtlSSO": <parameter to turn SSO off/on. Allowed values - 1 (single sign on via an external cookie), 0 (stand alone RTL authentication), default 0, Required>,
"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 17:15:04 +01:00
},
"nodes": [
{
2020-01-27 01:34:23 +01:00
"index": <Incremental node indices starting from 1, Required>,
"lnNode": "<Node name to uniquely identify the node in the UI, Default 'Node 1', Required>",
2020-07-07 19:57:15 +02:00
"lnImplementation": "<LNP implementation, Allowed values LND/CLT/ECL. Default 'LND', Required>",
2020-01-20 17:15:04 +01:00
"Authentication": {
2020-07-07 19:57:15 +02:00
"macaroonPath": "<Path for the folder containing 'admin.macaroon' (LND)/'access.macaroon' (CLT) file, Required for LND & CLT>",
2020-12-21 00:36:04 +01:00
"swapMacaroonPath": "<Path for the folder containing 'loop.macaroon' (LND), Required for LND Loop>",
2021-02-21 20:02:31 +01:00
"boltzMacaroonPath": "<Path for the folder containing 'admin.macaroon' (Boltz), Required for Boltz Swaps>",
2020-07-17 02:44:55 +02:00
"configPath": "<Full path of the lnd.conf/c-lightning config/eclair.conf file including the file name, if present locally, Optional, only mandatory for ECL if the lnApiPassword is missing>",
"lnApiPassword": "<Password to be used for ECL API authentication. Mandatory only for ECL if the configPath is missing>"
2020-01-20 17:15:04 +01:00
},
"Settings": {
2020-01-27 01:34:23 +01:00
"userPersona": "<User persona to tailor the data on UI. Allowed values MERCHANT, OPERATOR. Default MERCHANT, Required>",
"themeMode": "<Theme modes, Allowed values DAY, NIGHT. Default DAY, Required>",
2020-10-13 00:43:16 +02:00
"themeColor": "<Theme colors, Allowed values PURPLE, TEAL, INDIGO, PINK, YELLOW. Default PURPLE, Required>",
2020-01-27 01:34:23 +01: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>",
"enableLogging": <Parameter to turn RTL logging off/on. Allowed values - true, false, default false, Required>,
"fiatConversion": <parameter to turn fiat conversion off/on. Allowed values - true, false, default false, Required>,
"currencyUnit": "<Optional: Fiat current Unit for currency conversion, default 'USD' If fiatConversion is true, Required if fiatConversion is true>",
2020-08-18 16:34:40 +02:00
"lnServerUrl": "<Service url for LND/CLightning 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://localhost:8080', Required",
2020-12-21 00:36:04 +01:00
"swapServerUrl": "<Service url for swap server REST APIs for the node, e.g. https://localhost:8081, Optional>",
2021-02-21 20:02:31 +01:00
"boltzServerUrl": "<Service url for boltz server REST APIs for the node, e.g. https://localhost:9003, Optional>"
2020-01-20 17:15:04 +01:00
}
}
]
}
2019-02-17 21:40:27 +01:00
#### Environment variables
2019-02-17 22:44:02 +01:00
;The environment variable can also be used for all of the above configurations except the UI settings.
2020-01-20 17:15:04 +01:00
;If the environment variables are set, it will take precedence over the parameters in the RTL-Config.json file.
2020-01-27 01:34:23 +01:00
PORT (port number for the rtl node server, default 3000, Required)
2020-05-03 21:52:38 +02:00
HOST (host for the rtl node server, default localhost, Optional)
2020-07-07 19:57:15 +02:00
LN_IMPLEMENTATION (LND/CLT/ECL. Default 'LND', Required)
2020-08-18 16:34:40 +02:00
LN_SERVER_URL (LN server URL for LNP REST APIs, default https://localhost:8080) (Required)
SWAP_SERVER_URL (Swap server URL for REST APIs, default http://localhost:8081) (Optional)
2021-02-21 20:02:31 +01:00
BOLTZ_SERVER_URL (Boltz server URL for REST APIs, default http://localhost:9003) (Optional)
2020-07-12 21:47:42 +02:00
CONFIG_PATH (Full path of the LNP .conf file including the file name) (Optional for LND & CLT, Mandatory for ECL if LN_API_PASSWORD is undefined)
2020-07-07 19:57:15 +02:00
MACAROON_PATH (Path for the folder containing 'admin.macaroon' (LND)/'access.macaroon' (CLT) file, Required for LND & CLT)
2021-02-21 20:02:31 +01:00
SWAP_MACAROON_PATH (Path for the folder containing Loop's 'loop.macaroon', optional)
BOLTZ_MACAROON_PATH (Path for the folder containing Boltz's 'admin.macaroon', optional)
2020-01-27 01:34:23 +01:00
RTL_SSO (1 - single sign on via an external cookie, 0 - stand alone RTL authentication, Optional)
RTL_COOKIE_PATH (Full path of the cookie file including the file name, Required if RTL_SSO=1 else Optional)
LOGOUT_REDIRECT_LINK (URL to re-direct to after logout/timeout from RTL, Required if RTL_SSO=1 else Optional)
RTL_CONFIG_PATH (Path for the folder containing 'RTL-Config.json' file, Required)
BITCOIND_CONFIG_PATH (Full path of the bitcoind.conf file including the file name, Optional)
2020-07-12 21:47:42 +02:00
CHANNEL_BACKUP_PATH (Folder location for saving the channel backup files, valid for LND implementation only, Required if ln implementation=LND else Optional)
2020-07-14 13:22:36 +02: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)