parent
505ba27013
commit
9c9d4f08a0
File diff suppressed because one or more lines are too long
@ -1,68 +1,53 @@
|
|||||||
RTL allows the user to configure and control specific application parameters for app customization and integration.
|
RTL allows the user to configure and control specific application parameters for app customization and integration.
|
||||||
The parameters can be configured via RTL.conf file or through environment variables defined at the OS level.
|
The parameters can be configured via RTL-Config.json file or through environment variables defined at the OS level.
|
||||||
|
|
||||||
#### RTL.conf
|
#### RTL-Config.json
|
||||||
[Authentication]
|
{
|
||||||
;Path for the folder containing 'admin.macaroon' file
|
"multiPass": "<The password in plain text, default 'password'>",
|
||||||
macaroonPath=<>
|
"port": "<port number for the rtl node server, default '3000'>",
|
||||||
;For stand alone RTL authentication. Allowed values - CUSTOM, DEFAULT
|
"defaultNodeIndex": <Default index to load when rtl server starts, default 1>,
|
||||||
nodeAuthType=<>
|
"SSO": {
|
||||||
;Full path of the lnd.conf file including the file name
|
"rtlSSO": <parameter to turn SSO off/on. Allowed values - 1 (single sign on via an external cookie), 0 (stand alone RTL authentication), default 0>,
|
||||||
lndConfigPath=<>
|
"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>",
|
||||||
;For 'nodeAuthType=CUSTOM', the password in plain text
|
"logoutRedirectLink": "<URL to re-direct to after logout/timeout from RTL, Required if SSO=1 else empty>"
|
||||||
rtlPass=<>
|
},
|
||||||
|
"nodes": [
|
||||||
[Settings]
|
{
|
||||||
;Set by RTL
|
"index": <Incrimental Node indices starting from 1>,
|
||||||
userPersona=OPERATOR
|
"lnNode": "<Node name to uniquely identify the node in the UI, Default 'LND Node 1'>",
|
||||||
;Set by RTL
|
"lnImplementation": "<LNP implementation, Allowed values LND/CLT. Default 'LND'>",
|
||||||
themeMode=DAY
|
"Authentication": {
|
||||||
;Set by RTL
|
"macaroonPath": "<Path for the folder containing 'admin.macaroon' file>",
|
||||||
themeColor=PURPLE
|
"configPath": "<Optional:Full path of the lnd.conf file including the file name, if present locally or empty>"
|
||||||
;Full path of the bitcoin.conf file including the file name
|
},
|
||||||
bitcoindConfigPath=<>
|
"Settings": {
|
||||||
;parameter to turn RTL logging off/on. Allowed values - true, false
|
"userPersona": "<User persona to tailor the data on UI. Allowed values MERCHANT, OPERATOR. Default MERCHANT>",
|
||||||
enableLogging=<>
|
"themeMode": "<Theme modes, Allowed values DAY, NIGHT. Default DAY>",
|
||||||
;port number for the rtl node server, default 3000
|
"themeColor": "<Theme colors, Allowed values PURPLE, TEAL, INDIGO, PINK. Default PURPLE>",
|
||||||
port=3000
|
"channelBackupPath": "<Optional: Path to save channel backup file. Only for LND implementation, Default <RTL root>\backup\node-1>",
|
||||||
;<LND server URL for REST APIs.
|
"bitcoindConfigPath": "<Optional: path of bitcoind.conf path if available locally>",
|
||||||
;Default is 'https://localhost:8080/v1'
|
"enableLogging": <parameter to turn RTL logging off/on. Allowed values - true, false, default false>,
|
||||||
lndServerUrl=https://localhost:8080/v1
|
"fiatConversion": <parameter to turn fiat conversion off/on. Allowed values - true, false, default false>,
|
||||||
;Channel backup folder
|
"currencyUnit": "<Optional: Fiat current Unit for currency conversion, default 'USD' If fiatConversion is true>",
|
||||||
channelBackupPath=<>
|
"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'"
|
||||||
;Set by RTL
|
}
|
||||||
fiatConversion=false
|
}
|
||||||
;Set by RTL, dafault 'USD' If fiatConversion is true
|
]
|
||||||
currencyUnit=USD
|
}
|
||||||
|
|
||||||
[SSO]
|
|
||||||
;Single Sign On control
|
|
||||||
;Allowed values - 1,0
|
|
||||||
;1-single sign on via an external cookie
|
|
||||||
;0-stand alone RTL authentication
|
|
||||||
rtlSSO=0
|
|
||||||
;Required if 'rtlSSO=1'
|
|
||||||
;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
|
|
||||||
rtlCookiePath=<>
|
|
||||||
;Required if 'rtlSSO=1'
|
|
||||||
;URL to re-direct to after logout/timeout from RTL
|
|
||||||
logoutRedirectLink=/login
|
|
||||||
|
|
||||||
#### Environment variables
|
#### Environment variables
|
||||||
;The environment variable can also be used for all of the above configurations except the UI settings.
|
;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.conf file.
|
;If the environment variables are set, it will take precedence over the parameters in the RTL-Config.json file.
|
||||||
PORT (port number for the rtl node server, default 3000)
|
PORT (port number for the rtl node server, default 3000)
|
||||||
NODE_AUTH_TYPE (For stand alone RTL authentication allowed values - CUSTOM, DEFAULT)
|
NODE_AUTH_TYPE (For stand alone RTL authentication allowed value - CUSTOM)
|
||||||
RTL_PASS (Password for RTL custom authentication)
|
RTL_PASS (Password for RTL custom authentication)
|
||||||
LN_IMPLEMENTATION (LND, CLT. Default 'LND')
|
LN_IMPLEMENTATION (LND, CLT. Default 'LND')
|
||||||
LND_SERVER_URL (LND server URL for REST APIs, default https://localhost:8080/v1) OR LN_SERVER_URL (LN server URL for LNP REST APIs)
|
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)
|
||||||
LND_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)
|
LN_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)
|
MACAROON_PATH (Path for the folder containing 'admin.macaroon' file)
|
||||||
RTL_SSO (1 - single sign on via an external cookie, 0 - stand alone RTL authentication)
|
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)
|
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)
|
LOGOUT_REDIRECT_LINK (URL to re-direct to after logout/timeout from RTL)
|
||||||
RTL_CONFIG_PATH (Full path of the RTL.conf file including the file name)
|
RTL_CONFIG_PATH (Full path of the RTL-Config.json file including the file name)
|
||||||
BITCOIND_CONFIG_PATH (Full path of the bitcoind.conf file including the file name)
|
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)
|
CHANNEL_BACKUP_PATH (folder location for saving the channel backup files, valid for LND implementation only)
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"multiPass": "password",
|
||||||
|
"port": "3000",
|
||||||
|
"defaultNodeIndex": 1,
|
||||||
|
"SSO": {
|
||||||
|
"rtlSSO": 0,
|
||||||
|
"rtlCookiePath": "",
|
||||||
|
"logoutRedirectLink": ""
|
||||||
|
},
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"index": 1,
|
||||||
|
"lnNode": "LND Node 1",
|
||||||
|
"lnImplementation": "LND",
|
||||||
|
"Authentication": {
|
||||||
|
"macaroonPath": "C:\\Users\\shaha\\AppData\\Local\\Lnd\\data\\chain\\bitcoin\\mainnet",
|
||||||
|
"configPath": "C:\\Users\\shaha\\AppData\\Local\\Lnd\\lnd.conf"
|
||||||
|
},
|
||||||
|
"Settings": {
|
||||||
|
"userPersona": "MERCHANT",
|
||||||
|
"themeMode": "DAY",
|
||||||
|
"themeColor": "PURPLE",
|
||||||
|
"channelBackupPath": "C:\\Users\\shaha\\backup\\node-1",
|
||||||
|
"enableLogging": false,
|
||||||
|
"lnServerUrl": "https://localhost:8080/v1",
|
||||||
|
"fiatConversion": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"multiPass": "password",
|
|
||||||
"port": "3000",
|
|
||||||
"defaultNodeIndex": 1,
|
|
||||||
"SSO": {
|
|
||||||
"rtlSSO": 0,
|
|
||||||
"rtlCookiePath": "",
|
|
||||||
"logoutRedirectLink": ""
|
|
||||||
},
|
|
||||||
"nodes": [
|
|
||||||
{
|
|
||||||
"index": 1,
|
|
||||||
"lnNode": "LND Testnet",
|
|
||||||
"lnImplementation": "LND",
|
|
||||||
"Authentication": {
|
|
||||||
"macaroonPath": "<Complete path of the folder containing admin.macaroon for the node # 1>",
|
|
||||||
"lndConfigPath": "<Optional:Path of the lnd.conf if present locally or empty>"
|
|
||||||
},
|
|
||||||
"Settings": {
|
|
||||||
"userPersona": "OPERATOR",
|
|
||||||
"themeMode": "DAY",
|
|
||||||
"themeColor": "PURPLE",
|
|
||||||
"channelBackupPath": "C:\\RTL\\backup\\node-1",
|
|
||||||
"bitcoindConfigPath": "<Optional: path of bitcoind.conf path if available locally>",
|
|
||||||
"enableLogging": true,
|
|
||||||
"currencyUnit": "USD",
|
|
||||||
"fiatConversion": true,
|
|
||||||
"lndServerUrl": "<Service url for LND REST APIs for node # 1 e.g. https://192.168.0.1:8080/v1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": 2,
|
|
||||||
"lnNode": "C Lighting Testnet",
|
|
||||||
"lnImplementation": "CLT",
|
|
||||||
"Authentication": {
|
|
||||||
"macaroonPath": "<Complete path of the folder containing access.macaroon of CL REST for the node # 2>"
|
|
||||||
},
|
|
||||||
"Settings": {
|
|
||||||
"userPersona": "MERCHANT",
|
|
||||||
"themeMode": "NIGHT",
|
|
||||||
"themeColor": "TEAL",
|
|
||||||
"channelBackupPath": "C:\\RTL\\backup\\node-2",
|
|
||||||
"bitcoindConfigPath": "",
|
|
||||||
"enableLogging": true,
|
|
||||||
"fiatConversion": false,
|
|
||||||
"lnServerUrl": "<Service url for C Lightning REST APIs for node # 2 e.g. https://192.168.0.2:3001/v1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
[Authentication]
|
|
||||||
macaroonPath=
|
|
||||||
nodeAuthType=DEFAULT
|
|
||||||
lndConfigPath=
|
|
||||||
rtlPass=
|
|
||||||
|
|
||||||
[Settings]
|
|
||||||
userPersona=OPERATOR
|
|
||||||
themeMode=DAY
|
|
||||||
themeColor=PURPLE
|
|
||||||
channelBackupPath=C:\RTL\backup
|
|
||||||
bitcoindConfigPath=
|
|
||||||
enableLogging=true
|
|
||||||
port=3000
|
|
||||||
lndServerUrl=https://localhost:8080/v1
|
|
||||||
currencyUnit=GBP
|
|
||||||
fiatConversion=true
|
|
||||||
|
|
||||||
[SSO]
|
|
||||||
rtlSSO=0
|
|
||||||
rtlCookiePath=
|
|
||||||
logoutRedirectLink=/login
|
|
Loading…
Reference in New Issue