Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | "history_counters_url": ( | ||||
"https://stats.export.softwareheritage.org/history_counters.json", | "https://stats.export.softwareheritage.org/history_counters.json", | ||||
), | ), | ||||
"client_config": ("dict", {}), | "client_config": ("dict", {}), | ||||
"keycloak": ("dict", {"server_url": "", "realm_name": ""}), | "keycloak": ("dict", {"server_url": "", "realm_name": ""}), | ||||
"graph": ( | "graph": ( | ||||
"dict", | "dict", | ||||
{"server_url": "http://graph.internal.softwareheritage.org:5009/graph/"}, | {"server_url": "http://graph.internal.softwareheritage.org:5009/graph/"}, | ||||
), | ), | ||||
"status": ( | |||||
"dict", | |||||
{ | |||||
"server_url": "https://status.softwareheritage.org/", | |||||
ardumont: What's that? | |||||
Done Inline Actionspath to the swh status json data, see T2402 description anlambert: path to the swh status json data, see T2402 description | |||||
"json_path": "1.0/status/578e5eddcdc0cc7951000520", | |||||
}, | |||||
), | |||||
} | } | ||||
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 |
What's that?