2024-03-05 16:01:26 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
class MySqlConfig:
|
|
|
|
MYSQL_USER = os.environ.get('MYSQL_USER')
|
|
|
|
MYSQL_DATABASE = os.environ.get('MYSQL_DATABASE')
|
|
|
|
MYSQL_HOST = os.environ.get('MYSQL_HOST')
|
|
|
|
MYSQL_PORT = os.environ.get('MYSQL_PORT')
|
|
|
|
MYSQL_PASSWORD = os.environ.get('MYSQL_PASSWORD')
|
|
|
|
|
|
|
|
class RedisConfig:
|
|
|
|
REDIS_HOST = os.environ.get('REDIS_HOST')
|
|
|
|
REDIS_PORT = os.environ.get('REDIS_PORT')
|
|
|
|
|
|
|
|
class FlaskProduction:
|
|
|
|
DEBUG = False
|
|
|
|
JWT_SECRET_KEY = os.environ.get('JWT_SECRET_KEY')
|
|
|
|
SERVER_NAME = os.environ.get('HOST') + ':' + os.environ.get('PORT')
|
|
|
|
|
|
|
|
class FlaskTesting:
|
|
|
|
DEBUG = True
|
|
|
|
JWT_SECRET_KEY = os.environ.get('JWT_SECRET_KEY')
|
2024-03-10 21:41:48 +01:00
|
|
|
SERVER_NAME = os.environ.get('HOST') + ':' + os.environ.get('PORT')
|
|
|
|
|
|
|
|
MAIL_SERVER = os.environ.get('MAIL_SERVER')
|
2024-03-14 22:13:52 +01:00
|
|
|
MAIL_PORT = os.environ.get('MAIL_PORT')
|
2024-03-10 21:41:48 +01:00
|
|
|
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
|
|
|
|
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
|
2024-03-14 22:13:52 +01:00
|
|
|
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS')
|
|
|
|
MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER')
|