btcpayserver-docker
btcpayserver-docker copied to clipboard
Code mismatch in BTCPayServer-->DefaultConfiguration.cs
Lines 54-->67 in "protected override CommandLineApplication CreateCommandLineApplicationCore()" appear to be incompatible with lines 137-->147 in "protected override string GetDefaultConfigurationFileTemplate(IConfiguration conf)"
The later lines build a config file with the following format for the different cryptos :-
#agm.rpc.url=http://127.0.0.1:9899/ #By user name and password #agm.rpc.user=bitcoinuser #agm.rpc.password=bitcoinpassword #By cookie file #agm.rpc.cookiefile=yourbitcoinfolder/.cookie #By raw authentication string #agm.rpc.auth=walletuser:password
If a user of your program (in this case it was me trying to setup for BTC) un-commented those lines and set values for the parameters (using the format created by lines 137-->147) they would probably expect those values to then be adopted by the system, but they will not be (as I found out after a bit of head scratching) as lines 54-->67 expect the parameters to be in a different format :- e.g.
Expected format from lines 54-->67 (which in turn will be picked up by the system and used):-
btcrpccookiefile=/mnt.some.place.some.where.etc.......
Yes I know "run it in docker" but for configuration testing I need to tinker and the file format issue got me running around in circles for a fair while