forked from mirrors/thatmattlove-hyperglass
centralize static-y definitions
This commit is contained in:
parent
37f3194bbc
commit
446cf624b8
3 changed files with 12 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue