Mention environment variable substitution in configuration docs

This commit is contained in:
Filip Krakowski 2021-02-20 22:01:51 +01:00
parent aa07a50468
commit 3df58936b5
No known key found for this signature in database
GPG Key ID: 773AE6E405AFE69A

View File

@ -11,7 +11,7 @@ Per default, the bot loads the configuration from the `config.json` file, locate
You can specify a different configuration file used by the bot with the `-c/--config` command line option.
In some advanced use cases, multiple configuration files can be specified and used by the bot or the bot can read its configuration parameters from the process standard input stream.
In some advanced use cases, multiple configuration files can be specified and used by the bot or the bot can read its configuration parameters from the process standard input stream. Furthermore, the bot substitutes environment variables in the form of `${VARIABLE_NAME}`.
If you used the [Quick start](installation.md/#quick-start) method for installing
the bot, the installation script should have already created the default configuration file (`config.json`) for you.
@ -525,6 +525,9 @@ API Keys are usually only required for live trading (trading for real money, bot
You should also make sure to read the [Exchanges](exchanges.md) section of the documentation to be aware of potential configuration details specific to your exchange.
!!! Note
You can also store your secrets in environment variables and let the bot substitute them (`"key" : "${EXCHANGE_KEY}"`).
### Using proxy with Freqtrade
To use a proxy with freqtrade, add the kwarg `"aiohttp_trust_env"=true` to the `"ccxt_async_kwargs"` dict in the exchange section of the configuration.