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:
Lan
2025-12-18 23:08:40 +08:00
parent 8b813a2eaa
commit 900541baa5
3 changed files with 8 additions and 7 deletions
+1
View File
@@ -9,6 +9,7 @@ import random
import re
import string
import time
from core.settings import settings