Fixed stuff

This commit is contained in:
Mawoka
2022-04-15 19:53:01 +02:00
parent 53a7995b0e
commit 4bd0bf25b3
3 changed files with 4 additions and 20 deletions
+1 -10
View File
@@ -3,14 +3,5 @@
reverse_proxy /api* localhost:8000
reverse_proxy /rapidoc* localhost:8000
reverse_proxy /openapi.json localhost:8000
rewrite /socket.io /socket.io/
handle /socket.io/* {
uri strip_prefix /path
rewrite * /socket.io{path}
reverse_proxy localhost:8000 {
header_up Host {host}
header_up X-Real-IP {remote}
}
}
reverse_proxy /ms http://localhost:7700
reverse_proxy /socket.io* localhost:8000
}
+2 -9
View File
@@ -2,13 +2,6 @@
reverse_proxy * http://frontend:3000
reverse_proxy /api/* http://api:80
reverse_proxy /openapi.json http://api:80 # Only use if you need to serve the OpenAPI spec
rewrite /socket.io /socket.io/
handle /socket.io/* {
uri strip_prefix /path
rewrite * /socket.io{path}
reverse_proxy api:80 {
header_up Host {host}
header_up X-Real-IP {remote}
}
}
reverse_proxy /socket.io/* api:80
}
+1 -1
View File
@@ -6,7 +6,7 @@ import socketio
from classquiz.config import redis, settings
from classquiz.db.models import PlayGame
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=["https://classquiz.mawoka.eu"])
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=[])
settings = settings()