🚧 Add CA and server cert management

This commit is contained in:
Jonas Bengtsson
2026-09-19 13:35:49 +02:00
parent 45de68f0b7
commit 111d6cc390
20 changed files with 1317 additions and 34 deletions
+6 -1
View File
@@ -14,7 +14,12 @@ from app import models # noqa: F401 (register all models with Base)
config = context.config
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# Our minimal alembic.ini intentionally has no [loggers]/[handlers]/
# [formatters] sections; fileConfig raises KeyError without them.
try:
fileConfig(config.config_file_name)
except Exception: # noqa: BLE001 - logging config is optional here
pass
url = get_settings().database_url
if url.startswith("postgresql://"):