You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
885 B
Python
39 lines
885 B
Python
"""Configuration file"""
|
|
|
|
# ===== Flask Settings =====
|
|
SECRET_KEY = "secret-key-to-be-overwritten"
|
|
UPLOAD_FOLDER = 'uploads'
|
|
ALLOWED_EXTENSIONS = ['png']
|
|
|
|
# ===== Debug-Toolbar =====
|
|
DEBUG_TB_INTERCEPT_REDIRECTS = False
|
|
|
|
# ===== Flask-Bcrypt
|
|
BCRYPT_LOG_ROUNDS = 12
|
|
BCRYPT_HASH_PREFIX = '2b'
|
|
BCRYPT_HANDLE_LONG_PASSWORDS = True
|
|
|
|
# ===== Database =====
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
|
|
TESTING_DB = 'sqlite:///testing.db'
|
|
SQLALCHEMY_ECHO = False
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
# ===== WTF =====
|
|
WTF_CSRF_ENABLED = True
|
|
WTF_CSRF_TIME_LIMIT = 3600 # 1 hour
|
|
|
|
# ===== Flask-Mail =====
|
|
MAIL_SERVER = 'localhost'
|
|
MAIL_PORT = 25
|
|
MAIL_USE_TLS = False
|
|
MAIL_USE_SSL = False
|
|
# MAIL_DEBUG = app.debug
|
|
MAIL_USERNAME = None
|
|
MAIL_PASSWORD = None
|
|
DEFAULT_MAIL_SENDER = 'qerida'
|
|
MAIL_MAX_EMAILS = None
|
|
MAIL_SUPPRESS_SEND = True
|
|
MAIL_ASCII_ATTACHMENTS = False
|
|
MAIL_ASYNC_SEND = True
|