Skip to content

Commit 3c6f7f3

Browse files
committed
testing redis session manager
1 parent 02b1b69 commit 3c6f7f3

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.idea/workspace.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Server.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ class Settings(BaseSettings):
3030

3131
app = Flask(__name__)
3232
app.config['SECRET_KEY'] = "test key"
33-
app.config['SESSION_TYPE'] = 'redis'
34-
app.config['SESSION_REDIS'] = redis.from_url('redis://redis-svc:6379')
33+
# app.config['SESSION_TYPE'] = 'redis'
34+
# app.config['SESSION_REDIS'] = redis.from_url('redis://redis-svc:6379')
3535
#
36-
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*",
37-
cors_allowed_method=['DELETE', 'GET', 'OPTIONS', 'PATCH', 'POST', 'PUT'])
36+
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*")
3837

3938
users_in_room = {}
4039
rooms_sid = {}

0 commit comments

Comments
 (0)