1
0
forked from finn/site
site/backend/config.py

19 lines
537 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-03 15:37:27 +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 15:58:32 +00:00
MAIL_SERVER = 'pmb'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
ADMINS = [os.environ.get('ADMIN_EMAIL')]
2024-08-01 10:33:45 +00:00