site/backend/config.py

23 lines
636 B
Python
Raw Normal View History

2024-08-01 10:33:45 +00:00
import os
2024-08-01 13:35:28 +00:00
basedir = os.path.abspath(os.path.dirname(__file__))
2024-08-01 10:33:45 +00:00
# Remove or fallbacks for prod
class Config:
SECRET_KEY = os.environ.get('FLASK_SECRET_KEY') or 'flasksk'
2024-08-04 12:48:02 +00:00
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
#SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('MYSQL_PASSWORD') + '@db:3306/flask'
2024-08-01 13:35:28 +00:00
2024-08-03 18:45:37 +00:00
#MAIL_SERVER = 'pmb'
MAIL_SERVER = ''
2024-08-03 15:58:32 +00:00
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
ADMINS = [os.environ.get('ADMIN_EMAIL')]
2024-08-03 18:45:37 +00:00
FROM_ADDRESS = os.environ.get('FROM_ADDRESS')
2024-08-03 15:58:32 +00:00
2024-08-03 18:45:37 +00:00
DC_LOGGING = True
2024-08-01 10:33:45 +00:00