1
0
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:
checktheroads
2020-01-21 17:32:31 -07:00
parent 37f3194bbc
commit 446cf624b8
3 changed files with 12 additions and 0 deletions

View File

@ -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,
}

View File

@ -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"

View File

@ -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 \