Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | DEFAULT_CONFIG = { | ||||
), | ), | ||||
"status": ( | "status": ( | ||||
"dict", | "dict", | ||||
{ | { | ||||
"server_url": "https://status.softwareheritage.org/", | "server_url": "https://status.softwareheritage.org/", | ||||
"json_path": "1.0/status/578e5eddcdc0cc7951000520", | "json_path": "1.0/status/578e5eddcdc0cc7951000520", | ||||
}, | }, | ||||
), | ), | ||||
"metadata_search_backend": ("string", "swh-indexer-storage"), # or "swh-search" | |||||
} | } | ||||
swhweb_config = {} # type: Dict[str, Any] | swhweb_config = {} # type: Dict[str, Any] | ||||
def get_config(config_file="web/web"): | def get_config(config_file="web/web"): | ||||
"""Read the configuration file `config_file`. | """Read the configuration file `config_file`. | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |