2024-08-01 03:33:45 -07:00
|
|
|
import os
|
2024-08-01 06:35:28 -07:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
2024-08-01 03:33:45 -07:00
|
|
|
|
|
|
|
# Remove or fallbacks for prod
|
|
|
|
|
|
|
|
class Config:
|
2024-08-05 00:59:01 -07:00
|
|
|
SECRET_KEY = os.environ.get('DOTENV_FLASK_SECRET_KEY')
|
2024-08-04 09:40:09 -07:00
|
|
|
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
|
2024-08-05 00:59:01 -07:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('DOTENV_MYSQL_PASSWORD') + '@db:3306/flask'
|
2024-08-01 06:35:28 -07:00
|
|
|
|
2024-08-04 22:00:07 -07:00
|
|
|
MAIL_SERVER = 'pmb'
|
2024-08-03 08:58:32 -07:00
|
|
|
MAIL_PORT = 25
|
|
|
|
MAIL_USE_TLS = False
|
|
|
|
MAIL_USERNAME = ''
|
|
|
|
MAIL_PASSWORD = ''
|
2024-08-05 00:59:01 -07: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-08 16:10:43 +00:00
|
|
|
ALLOW_REGISTRATION = os.environ.get('DOTENV_ALLOW_REGISTRATION')
|
2024-08-05 00:59:01 -07:00
|
|
|
|
2024-08-03 08:58:32 -07:00
|
|
|
|
2024-08-03 11:45:37 -07:00
|
|
|
DC_LOGGING = True
|
2024-08-04 13:14:58 -07:00
|
|
|
POSTS_PER_PAGE=5
|
2024-08-03 11:45:37 -07:00
|
|
|
|
2024-08-01 03:33:45 -07:00
|
|
|
|