make path of custom templates and static files configurable
This commit is contained in:
@@ -22,6 +22,7 @@ class Config:
|
||||
api_port: int
|
||||
controller_port: int
|
||||
database_file: str # empty str: disable database
|
||||
custom: str
|
||||
debug: bool
|
||||
|
||||
@staticmethod
|
||||
@@ -58,6 +59,7 @@ class Config:
|
||||
api_port=data.pop("api-port", 8000),
|
||||
controller_port=data.pop("controller-port", 5000),
|
||||
database_file=str(data.pop("database-file", "capport.state")),
|
||||
custom=str(data.pop("custom", "custom")),
|
||||
debug=data.pop("debug", False),
|
||||
)
|
||||
if data:
|
||||
|
||||
Reference in New Issue
Block a user