Rename ssl and auth configuration file settings.

Add enable SSL config validator.
Strict configuration file validation: any error will prevent the server to start.
Core server logic moved to a Server class.
This commit is contained in:
grossmj committed 2021-04-12 23:26:42 +09:30
1 parent 1b5a5de4bc
commit 71725aade6
12 files changed
+542 -520

No files matched your search

+3 -3
View File
@@ -272,14 +272,14 @@ class Config:
return
for file in parsed_files:
log.info(f"Load configuration file '{file}'")
log.info(f"Configuration file '{file}' loaded")
self._watched_files[file] = os.stat(file).st_mtime
try:
self._settings = ServerConfig(**config._sections)
except ValidationError as e:
log.error(f"Could not validate config: {e}")
return
log.critical(f"Could not validate configuration file settings: {e}")
raise
self._load_secret_files()