Ride-The-Lightning-RTL/docs/Application_configurations

52 lines
3.7 KiB
Plaintext
Raw Normal View History

2019-02-17 21:40:27 +01:00
RTL allows the user to configure and control specific application parameters for app customization and integration.
The parameters can be configured via RTL-Config.json file or through environment variables defined at the OS level.
2019-02-17 21:40:27 +01:00
#### RTL-Config.json
{
"multiPass": "<The password in plain text, default 'password'>",
"port": "<port number for the rtl node server, default '3000'>",
"defaultNodeIndex": <Default index to load when rtl server starts, default 1>,
"SSO": {
"rtlSSO": <parameter to turn SSO off/on. Allowed values - 1 (single sign on via an external cookie), 0 (stand alone RTL authentication), default 0>,
"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>",
"logoutRedirectLink": "<URL to re-direct to after logout/timeout from RTL, Required if SSO=1 else empty>"
},
"nodes": [
{
"index": <Incrimental Node indices starting from 1>,
2020-01-21 04:22:03 +01:00
"lnNode": "<Node name to uniquely identify the node in the UI, Default 'Node 1'>",
"lnImplementation": "<LNP implementation, Allowed values LND/CLT. Default 'LND'>",
"Authentication": {
"macaroonPath": "<Path for the folder containing 'admin.macaroon' file>",
"configPath": "<Optional:Full path of the lnd.conf file including the file name, if present locally or empty>"
},
"Settings": {
"userPersona": "<User persona to tailor the data on UI. Allowed values MERCHANT, OPERATOR. Default MERCHANT>",
"themeMode": "<Theme modes, Allowed values DAY, NIGHT. Default DAY>",
"themeColor": "<Theme colors, Allowed values PURPLE, TEAL, INDIGO, PINK. Default PURPLE>",
"channelBackupPath": "<Optional: Path to save channel backup file. Only for LND implementation, Default <RTL root>\backup\node-1>",
"bitcoindConfigPath": "<Optional: path of bitcoind.conf path if available locally>",
"enableLogging": <parameter to turn RTL logging off/on. Allowed values - true, false, default false>,
"fiatConversion": <parameter to turn fiat conversion off/on. Allowed values - true, false, default false>,
"currencyUnit": "<Optional: Fiat current Unit for currency conversion, default 'USD' If fiatConversion is true>",
"lnServerUrl": "<Service url for LND/CLightning REST APIs for the node, e.g. https://192.168.0.1:8080/v1 OR https://192.168.0.1:3001/v1. Default 'https://localhost:8080/v1'"
}
}
]
}
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.
;If the environment variables are set, it will take precedence over the parameters in the RTL-Config.json file.
2019-02-17 22:44:02 +01:00
PORT (port number for the rtl node server, default 3000)
LN_IMPLEMENTATION (LND, CLT. Default 'LND')
LN_SERVER_URL (LND server URL for REST APIs, default https://localhost:8080/v1) OR LN_SERVER_URL (LN server URL for LNP REST APIs)
2020-01-21 23:04:26 +01:00
CONFIG_PATH (Full path of the lnd.conf file including the file name) OR CONFIG_PATH (Full path of the LNP .conf file including the file name)
MACAROON_PATH (Path for the folder containing 'admin.macaroon' file)
2019-02-17 22:44:02 +01:00
RTL_SSO (1 - single sign on via an external cookie, 0 - stand alone RTL authentication)
RTL_COOKIE_PATH (Full path of the cookie file including the file name)
LOGOUT_REDIRECT_LINK (URL to re-direct to after logout/timeout from RTL)
2020-01-21 23:04:26 +01:00
RTL_CONFIG_PATH (Path for the folder containing 'RTL-Config.json' file)
BITCOIND_CONFIG_PATH (Full path of the bitcoind.conf file including the file name)
CHANNEL_BACKUP_PATH (folder location for saving the channel backup files, valid for LND implementation only)