First API implementation
This commit is contained in:
@@ -11,7 +11,11 @@ import util
|
||||
DEFAULT_CONFIG = {
|
||||
"matrix_homeserver": "https://matrix.domain.net",
|
||||
"matrix_user": "short_username",
|
||||
"store_dir": "session_storage"
|
||||
"store_dir": "session_storage",
|
||||
"web_ip": "0.0.0.0",
|
||||
"web_port": 4980,
|
||||
"fails_to_ban": 50,
|
||||
"ban_duration": 600
|
||||
}
|
||||
|
||||
|
||||
@@ -50,4 +54,5 @@ async def load_config(path: str = "config.json") -> AppConfig | None:
|
||||
cfg = AppConfig(**j)
|
||||
return cfg
|
||||
except:
|
||||
traceback.print_exc()
|
||||
return None
|
||||
Reference in New Issue
Block a user