diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/web_kbn.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/web_kbn.py b/bin/web_kbn.py index 8226b40..add7af2 100755 --- a/bin/web_kbn.py +++ b/bin/web_kbn.py @@ -442,7 +442,7 @@ async def cams(req: web.Request): mode = {'type': 'all'} js_config = { - 'host': config.app_config['cam_hls_host'], + 'host': config.app_config['hls_local_host'], 'proto': 'http', 'cams': cams, 'hlsConfig': { @@ -552,6 +552,17 @@ async def routing_dhcp(req: web.Request): context=dict(leases=leases, selected_tab='dhcp')) +@routes.get('/debug.cgi') +async def debug(req: web.Request): + info = dict( + headers=req.headers, + host=req.headers.get('Host'), + url=req.url, + method=req.method, + ) + return await http.ajax_ok(info) + + def init_web_app(app: web.Application): app.middlewares.append(language_middleware) aiohttp_jinja2.setup( |