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.

swh.web.config.search()[source]#

Return the current application’s search.

swh.web.config.storage()[source]#

Return the current application’s storage.

swh.web.config.vault()[source]#

Return the current application’s vault.

swh.web.config.indexer_storage()[source]#

Return the current application’s indexer storage.

swh.web.config.scheduler()[source]#

Return the current application’s scheduler.

swh.web.config.counters()[source]#

Return the current application’s counters.