fix: drop debug toolbar

This commit is contained in:
2023-12-20 15:44:38 +02:00
parent a872ecfc23
commit 1b93f4f5e0
11 changed files with 2 additions and 56 deletions

View File

@ -297,22 +297,6 @@ CONFIGURATION_SCHEMA: ConfigurationSchema = {
"empty": False,
"is_url": ["http", "https"],
},
"debug": {
"type": "boolean",
"coerce": "boolean",
},
"debug_check_host": {
"type": "boolean",
"coerce": "boolean",
},
"debug_allowed_hosts": {
"type": "list",
"coerce": "list",
"schema": {
"type": "string",
"empty": False,
},
},
"enable_archive_upload": {
"type": "boolean",
"coerce": "boolean",

View File

@ -171,16 +171,6 @@ def setup_server(configuration: Configuration, spawner: Spawn, repositories: lis
application.logger.info("setup process spawner")
application["spawn"] = spawner
# disable debug panel as it is not compatible with python 3.11 at the moment
# https://github.com/aio-libs/aiohttp-debugtoolbar/issues/477
# application.logger.info("setup debug panel")
# debug_enabled = configuration.getboolean("web", "debug", fallback=False)
# if debug_enabled:
# import aiohttp_debugtoolbar # type: ignore[import-untyped]
# aiohttp_debugtoolbar.setup(application,
# hosts=configuration.getlist("web", "debug_allowed_hosts", fallback=[]),
# check_host=configuration.getboolean("web", "debug_check_host", fallback=False))
application.logger.info("setup authorization")
validator = application["validator"] = Auth.load(configuration, database)
if validator.enabled: