praca za proxy
This commit is contained in:
10
app/main.py
10
app/main.py
@@ -11,4 +11,12 @@ async def favicon():
|
||||
return Response(status_code=204)
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run('app.main:app', host=settings.host, port=settings.port, log_level=settings.log_level)
|
||||
uvicorn.run(
|
||||
'app.main:app',
|
||||
host=settings.host,
|
||||
port=settings.port,
|
||||
log_level=settings.log_level,
|
||||
proxy_headers=True,
|
||||
forwarded_allow_ips="*",
|
||||
# access_log=True
|
||||
)
|
||||
|
Reference in New Issue
Block a user