FluxIP/app/__main__.py

23 lines
435 B
Python

from __future__ import annotations
import uvicorn
from app.core.config import get_settings
def main() -> None:
settings = get_settings()
uvicorn.run(
"app.main:app",
host=settings.host,
port=settings.port,
workers=1,
proxy_headers=True,
forwarded_allow_ips=settings.trusted_proxies,
log_level=settings.log_level.lower(),
)
if __name__ == "__main__":
main()