forked from mtusi2026/mtusi2026lab7
15 lines
341 B
Python
15 lines
341 B
Python
import os
|
|
|
|
import uvicorn
|
|
|
|
|
|
if __name__ == '__main__':
|
|
uvicorn.run(
|
|
'src.main:app',
|
|
host=os.getenv('APP_HOST', '0.0.0.0'),
|
|
port=int(os.getenv('APP_PORT', '8080')),
|
|
workers=1,
|
|
access_log=False, # Structured logs use route templates, never query strings.
|
|
timeout_graceful_shutdown=5,
|
|
)
|