3
I would like to store my Bitcoin RPC passwords and usernames in environment variables, like:
rpcuser=$RPC_USER rpcpassword=$RPC_PASSWORD
Is this supported in bitcoin core? Can environmental variables be parsed from my bitcoin.conf file?
3
I would like to store my Bitcoin RPC passwords and usernames in environment variables, like:
rpcuser=$RPC_USER rpcpassword=$RPC_PASSWORD
Is this supported in bitcoin core? Can environmental variables be parsed from my bitcoin.conf file?
Very bad idea! Why should you do such a thing? – o0'. – 2013-05-24T17:47:02.963
Why is it a bad idea? – alfetopito – 2013-05-24T17:52:12.490
I don't think this is a bad idea, but I do think that this is an XY Problem.
– Nick ODell – 2016-01-13T23:27:46.247This would be great to have. I use docker to host my bitcoin node and I would like to be able to have docker inject environment variables depending on production/dev etc. Have you found how to do this yet? – Mr_E – 2017-03-19T20:29:51.667
It's been awhile. At the time, I ended up generating the config file with the values rather than using envvars, as I found no other way to do it. – alfetopito – 2017-04-17T18:10:35.063