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:
@@ -9,6 +9,7 @@ import random
|
||||
import re
|
||||
import string
|
||||
import time
|
||||
|
||||
from core.settings import settings
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user