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

25 lines
710 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:
2024-08-05 07:59:01 +00:00
SECRET_KEY = os.environ.get('DOTENV_FLASK_SECRET_KEY')
2024-08-04 16:40:09 +00:00
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
2024-08-05 07:59:01 +00:00
SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('DOTENV_MYSQL_PASSWORD') + '@db:3306/flask'
2024-08-01 13:35:28 +00:00
2024-08-05 05:00:07 +00:00
MAIL_SERVER = 'pmb'
2024-08-03 15:58:32 +00:00
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
2024-08-05 07:59:01 +00:00
ADMINS = [os.environ.get('DOTENV_ADMIN_EMAIL')]
FROM_ADDRESS = os.environ.get('DOTENV_FROM_ADDRESS')
REAL_HOSTNAME = os.environ.get('DOTENV_REAL_HOSTNAME')
2024-08-03 15:58:32 +00:00
2024-08-03 18:45:37 +00:00
DC_LOGGING = True
2024-08-04 20:14:58 +00:00
POSTS_PER_PAGE=5
2024-08-03 18:45:37 +00:00
2024-08-01 10:33:45 +00:00