Vowel is a Virtual Online Workspace for Education and Learning.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

73 lines
2.2 KiB

# coding=utf8
#
# config.py: Basic configuration
# Copyright (C) 2015, 2016 Sam Black <samwwwblack@lapwing.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from datetime import timedelta
DEBUG = True
SECRET_KEY = "changemesecretkey"
SERVER_NAME = "127.0.0.1:5000"
SQLALCHEMY_DATABASE_URI = "postgresql://postgres@127.0.0.1/vowel"
SQLALCHEMY_TRACK_MODIFICATIONS = False
DATASTORE_PATH = "/media/vowel_datastore"
MAX_CONTENT_LENGTH = 128 * 1024 * 1024
REDIS_URI = "redis://localhost/"
REDIS_DEFAULT_URI = "{}1".format(REDIS_URI)
CACHE_TYPE = "redis"
CACHE_REDIS_URI = REDIS_DEFAULT_URI
CACHE_DEFAULT_TIMEOUT = 300
RQ_DEFAULT_URL = REDIS_DEFAULT_URI
RQ_HIGH_URL = RQ_DEFAULT_URL
RQ_LOW_URL = RQ_DEFAULT_URL
SOCKETIO_REDIS_URL = REDIS_DEFAULT_URI
MAIL_SERVER = "localhost"
MAIL_PORT = 25
MAIL_DEFAULT_SENDER = "noreply@localhost.localhost"
MAIL_MAX_EMAILS = 25
SECURITY_URL_PREFIX = "/account"
SECURITY_PASSWORD_HASH = "pbkdf2_sha512"
SECURITY_PASSWORD_SALT = "changemepasswordsalt"
SECURITY_CONFIRMABLE = True
SECURITY_TRACKABLE = True
SECURITY_RECOVERABLE = True
SECURITY_CHANGEABLE = True
SESSION_PROTECTION = "strong"
PERMANENT_SESSION_LIFETIME = timedelta(days=7)
SESSION_COOKIE_NAME = "vowel_session"
REMEMBER_COOKIE_NAME = "vowel_remember_token"
REMEMBER_COOKIE_DURATION = timedelta(days=28)
SECURITY_EMAIL_SENDER = MAIL_DEFAULT_SENDER
DEBUG_TB_INTERCEPT_REDIRECTS = False
DEBUG_TB_TEMPLATE_EDITOR_ENABLED = True
SENTRY_DSN = None # This should not be set for development servers
# We use eventlet in gunicorn, and this breaks Sentry Client.
# Use the eventlet transport for Sentry.
SENTRY_TRANSPORT = "raven.transport.eventlet.EventletHTTPTransport"