mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
centralize static-y definitions
This commit is contained in:
@ -421,3 +421,12 @@ _frontend_params.update(
|
||||
}
|
||||
)
|
||||
frontend_params = _frontend_params
|
||||
|
||||
URL_DEV = f"http://localhost:{str(params.general.listen_port)}/api/"
|
||||
URL_PROD = "/api/"
|
||||
|
||||
REDIS_CONFIG = {
|
||||
"host": str(params.general.redis_host),
|
||||
"port": params.general.redis_port,
|
||||
"decode_responses": True,
|
||||
}
|
||||
|
@ -18,3 +18,4 @@ class Docs(HyperglassModel):
|
||||
endpoint_summary: StrictStr = "Query Endpoint"
|
||||
endpoint_description: StrictStr = "Request a query response per-location."
|
||||
group_title: StrictStr = "Queries"
|
||||
openapi_url: AnyUri = "/openapi.json"
|
||||
|
@ -34,6 +34,8 @@ LOG_HANDLER = {"sink": sys.stdout, "format": LOG_FMT, "level": "INFO"}
|
||||
|
||||
LOG_HANDLER_FILE = {"format": LOG_FMT, "level": "INFO"}
|
||||
|
||||
STATUS_CODE_MAP = {"warning": 400, "error": 400, "danger": 500}
|
||||
|
||||
CREDIT = """
|
||||
Powered by [**hyperglass**](https://github.com/checktheroads/hyperglass). Source code \
|
||||
licensed \
|
||||
|
Reference in New Issue
Block a user