123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- """
- flaskbb.configs.default
- ~~~~~~~~~~~~~~~~~~~~~~~
- This is the default configuration for FlaskBB that every site should have.
- You can override these configuration variables in another class.
- :copyright: (c) 2014 by the FlaskBB Team.
- :license: BSD, see LICENSE for more details.
- """
- import os
- class DefaultConfig(object):
-
-
-
- _basedir = os.path.join(os.path.abspath(os.path.dirname(os.path.dirname(
- os.path.dirname(__file__)))))
- DEBUG = False
- TESTING = False
-
-
-
- SEND_LOGS = False
-
-
- INFO_LOG = "info.log"
- ERROR_LOG = "error.log"
-
- SQLALCHEMY_DATABASE_URI = 'sqlite:///' + _basedir + '/' + \
- 'flaskbb.sqlite'
-
- SQLALCHEMY_ECHO = False
-
-
-
- SECRET_KEY = 'secret key'
-
- WTF_CSRF_ENABLED = True
- WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
-
- LOGIN_VIEW = "auth.login"
- REAUTH_VIEW = "auth.reauth"
- LOGIN_MESSAGE_CATEGORY = "error"
-
- CACHE_TYPE = "simple"
- CACHE_DEFAULT_TIMEOUT = 60
-
- RECAPTCHA_ENABLED = False
- RECAPTCHA_USE_SSL = False
- RECAPTCHA_PUBLIC_KEY = "your_public_recaptcha_key"
- RECAPTCHA_PRIVATE_KEY = "your_private_recaptcha_key"
- RECAPTCHA_OPTIONS = {"theme": "white"}
-
- MAIL_SERVER = "localhost"
- MAIL_PORT = 25
- MAIL_USE_SSL = False
- MAIL_USE_TLS = False
- MAIL_USERNAME = "noreply@example.org"
- MAIL_PASSWORD = ""
- MAIL_DEFAULT_SENDER = ("Default Sender", "noreply@example.org")
-
- ADMINS = ["admin@example.org"]
-
- REDIS_ENABLED = False
- REDIS_HOST = 'localhost'
- REDIS_PORT = 6379
- REDIS_DB = 0
- FORUM_URL_PREFIX = ""
- USER_URL_PREFIX = "/user"
- AUTH_URL_PREFIX = "/auth"
- ADMIN_URL_PREFIX = "/admin"
|