mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 23:01:15 +02:00
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:
1 parent
1b5a5de4bc
commit
71725aade6
12 files changed
+542
-520
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user