invidious-experimenting/src/invidious/helpers
saltycrys f1a7ee997b Add config environment variables
The config file can now be specified with `INVIDIOUS_CONFIG_FILE`.
A YAML formatted string can still be passed with `INVIDIOUS_CONFIG`, replacing
the config file.

Additionally all options can now be specified as environment variables.
The syntax for variable names is `INVIDIOUS_` followed by the option name in
upper case. The values are parsed as YAML.

These new env vars only update the provided main configuration, but it is
possible to point the config file at the example config and then use env vars
for all config options:
```
INVIDIOUS_CONFIG_FILE=./config/config.example.yml \
INVIDIOUS_CHANNEL_THREADS=10 \
./invidious
```
2021-01-23 18:58:13 +01:00
..
errors.cr Set content type for HTML error helpers 2021-01-04 05:24:08 +01:00
handlers.cr Fix storyboards 2020-10-25 09:35:16 +01:00
helpers.cr Add config environment variables 2021-01-23 18:58:13 +01:00
i18n.cr Fix warnings in latest version of Crystal 2020-04-09 12:18:09 -05:00
json_filter.cr Implement "fields" parameter from the YouTube Data API (#429) 2019-03-30 20:18:34 -05:00
logger.cr Add CLI arguments to config file 2021-01-05 20:35:59 +01:00
macros.cr Fix warnings with latest version of Crystal 2020-07-26 10:59:31 -04:00
proxy.cr Close http clients after using 2020-12-27 19:40:58 -05:00
signatures.cr add config to decrypt on demand instead of polling 2021-01-03 20:50:52 +01:00
static_file_handler.cr Support Crystal 0.35.0 2020-06-15 18:11:06 -05:00
tokens.cr Add backtraces to errors (#1498) 2020-11-30 10:59:21 +01:00
utils.cr Close http clients after using 2020-12-27 19:40:58 -05:00