Updated config

This commit is contained in:
Sviatoslav Tsariov Yurievich 2025-05-22 21:30:33 +03:00
parent 12a63e3523
commit 38c21b6977
2 changed files with 2 additions and 1 deletions

View File

@ -30,4 +30,4 @@ else:
if __name__ == '__main__':
#app.run(debug=True)
socketio.run(app, host="192.168.1.138", debug=False)
socketio.run(app, host=Config.APP_HOST, debug=False)

View File

@ -1,6 +1,7 @@
import os
class Config:
APP_HOST = os.getenv('APP_HOST', '0.0.0.0')
DB_NAME = os.getenv('DB_NAME', 'talkpal')
JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY', 'your_jwt_secret_key')
MONGO_URI = os.getenv('MONGO_URI', 'mongodb://localhost:5005/')