feat(config): Add configurable workers and host settings
- Add "workers" configuration option to DEFAULT_CONFIG with default value of 1 - Add "host" configuration option to DEFAULT_CONFIG with default value of "::" - Update uvicorn.run() to use settings.host and settings.workers instead of hardcoded values - Reorganize imports in main.py for better readability and consistency - Add blank line after time import in core/utils.py for PEP 8 compliance - Allow dynamic configuration of server workers and binding host address
This commit is contained in:
@@ -66,6 +66,8 @@ DEFAULT_CONFIG = {
|
||||
"themesSelect": "themes/2024",
|
||||
"errorMinute": 1,
|
||||
"errorCount": 1,
|
||||
"workers": 1,
|
||||
"host": "::",
|
||||
"port": 12345,
|
||||
"showAdminAddr": 0,
|
||||
"robotsText": "User-agent: *\nDisallow: /",
|
||||
|
||||
Reference in New Issue
Block a user