Изменил корс
This commit is contained in:
parent
00a7e307de
commit
d4693a05b2
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ app.include_router(websocket_router)
|
|||
app.include_router(user_router)
|
||||
app.include_router(image_router)
|
||||
|
||||
origins = ["http://localhost:5173", "http://localhost:3000", "https://chat.black-phoenix.ru"]
|
||||
origins = ["http://localhost:5173", "http://localhost:3000", "https://chat.black-phoenix.ru/"]
|
||||
headers = [
|
||||
"Content-Type",
|
||||
"Set-Cookie",
|
||||
|
|
|
|||
|
|
@ -22,5 +22,5 @@ RUN chown -R app:app $APP_HOME
|
|||
USER app
|
||||
|
||||
CMD ["gunicorn", "app.main:app", "--workers", "2", "--worker-class", "uvicorn.workers.UvicornWorker",\
|
||||
"--bind=0.0.0.0:8000", "--max-requests", "500", "--max-requests-jitter", "50"]
|
||||
"--bind=0.0.0.0:8000", "--max-requests", "10000", "--max-requests-jitter", "20"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue