New in River4 v0.110.
I had to switch from Heroku to an AWS-hosted Ubuntu server that's hosting a bunch of other apps. Without the isolation that Heroku provides, the environment variables of all these apps were getting in each others' way. Rather than hack my way through all the arcane rules of environment variables, I decided to create a simpler more reliable (imho) way to configure River4 and nodeStorage, using a config.json file in the same directory as river4.js.
Here's a list of values you can include in this file:
They work exactly the same way as the environment variables with the same names.
If you specify an environment variable and an element in config.json, the one in config.json takes precedence.
If you're using S3 storage, you need to provide the three values for your AWS account. Since the Amazon library is looking for these in environment variables, you must provide them that way.
Here's an example, the contents of config.json on my server (with values changed).