Skip to content

Commit 680d594

Browse files
committed
test redis
1 parent d632a7a commit 680d594

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.idea/workspace.xml

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

Server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import requests
88
import json
99
from pydantic import BaseSettings
10-
10+
from flask_session import Session
1111

1212
class Settings(BaseSettings):
1313
ES_IP: str = 'http://localhost'
@@ -30,10 +30,12 @@ class Settings(BaseSettings):
3030
app = Flask(__name__)
3131
app.config['SECRET_KEY'] = "test key"
3232
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*")
33+
3334
app.config['SESSION_TYPE'] = 'redis'
3435
app.config['SESSION_PERMANENT'] = False
3536
app.config['SESSION_USE_SIGNER'] = True
36-
app.config['SESSION_REDIS'] = redis.from_url('redis://localhost:6379')
37+
app.config['SESSION_REDIS'] = redis.from_url('redis://redis-svc:6379')
38+
3739
users_in_room = {}
3840
rooms_sid = {}
3941
names_sid = {}

0 commit comments

Comments
 (0)