-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (28 loc) · 868 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from fastapi import FastAPI
from dotenv import load_dotenv
load_dotenv()
import chat
import battleship
import twentyfour
import waitlist
import yuu_player
import giftbox
import yuu_player_share
import tictactoe
import calendar_solver
app = FastAPI()
app.mount('/waitlist', waitlist.app)
app.mount('/giftbox', giftbox.app)
app.mount('/yuu', yuu_player.app)
app.mount('/apad', calendar_solver.app)
app.mount('/', twentyfour.app)
twentyfour.app.other_asgi_app = battleship.app
battleship.app.other_asgi_app = yuu_player_share.app
yuu_player_share.app.other_asgi_app = tictactoe.app
tictactoe.app.other_asgi_app = chat.app
if __name__ == '__main__':
import uvicorn
uvicorn.run(app, host='127.0.0.1', port=80)
from uvicorn import workers
class CustomUvicornWorker(workers.UvicornWorker):
CONFIG_KWARGS = {'ws': 'websockets', 'ws_max_size': 100*1024*1024+1000}