refactored

This commit is contained in:
2022-08-11 08:53:14 +03:00
parent 158cb20717
commit 8aec6c6e07
46 changed files with 116 additions and 418 deletions

View File

@@ -1,5 +1,5 @@
import uvicorn
from settings import PORT, INBOX_SERVICE_PORT
from settings import PORT
import sys
@@ -16,8 +16,5 @@ if __name__ == '__main__':
("Access-Control-Allow-Credentials", "true")
]
uvicorn.run("main:app", host="localhost", port=8080, headers=headers) #, ssl_keyfile="discours.key", ssl_certfile="discours.crt", reload=True)
elif inbox_service:
print("INBOX SERVICE")
uvicorn.run("inbox_main:app", host="0.0.0.0", port=INBOX_SERVICE_PORT)
else :
uvicorn.run("main:app", host="0.0.0.0", port=PORT)