swh.web.config module#
- swh.web.config.get_config(config_file='web/web')[source]#
Read the configuration file config_file.
If an environment variable SWH_CONFIG_FILENAME is defined, this takes precedence over the config_file parameter.
In any case, update the app with parameters (secret_key, conf) and return the parsed configuration as a dict.
If no configuration file is provided, return a default configuration.