2013-12-03 22:09:57 +02:00
|
|
|
import socket
|
|
|
|
|
|
|
|
HOSTNAME = socket.gethostname()
|
|
|
|
|
|
|
|
ENV = 'DEV'
|
|
|
|
|
2014-01-14 01:07:13 +02:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://deploy:dbpassword@localhost:5432/realms'
|
2013-12-03 22:09:57 +02:00
|
|
|
|
|
|
|
REDIS_HOST = '127.0.0.1'
|
|
|
|
REDIS_PORT = 6379
|
|
|
|
|
|
|
|
SECRET_KEY = 'K3dRq1q9eN72GJDkgvyshFVwlqHHCyPI'
|
|
|
|
|
|
|
|
REPO_DIR = '/home/deploy/repos'
|
|
|
|
REPO_MAIN_NAME = '_'
|
|
|
|
REPO_FORBIDDEN_NAMES = ['api', 'www']
|
|
|
|
REPO_ENABLE_SUBDOMAIN = True
|
|
|
|
|
|
|
|
RECAPTCHA_PUBLIC_KEY = '6LfoxeESAAAAAGNaeWnISh0GTgDk0fBnr6Bo2Tfk'
|
|
|
|
RECAPTCHA_PRIVATE_KEY = '6LfoxeESAAAAABFzdCs0hNIIyeb42mofV-Ndd2_2'
|
|
|
|
RECAPTCHA_OPTIONS = {'theme': 'clean'}
|
|
|
|
|
|
|
|
ROOT_ENDPOINT = 'wiki.page'
|
|
|
|
WIKI_HOME = 'home'
|
|
|
|
|
|
|
|
MODULES = [
|
|
|
|
'wiki',
|
|
|
|
'auth'
|
|
|
|
]
|
|
|
|
|
|
|
|
if ENV is 'PROD':
|
2014-01-14 01:07:13 +02:00
|
|
|
#SERVER_NAME = 'realms.io'
|
2013-12-09 22:24:22 +02:00
|
|
|
PORT = 80
|
2014-01-14 01:07:13 +02:00
|
|
|
DOMAIN = 'realms.io'
|
2013-12-03 22:09:57 +02:00
|
|
|
else:
|
|
|
|
DEBUG = True
|
2013-12-09 22:24:22 +02:00
|
|
|
ASSETS_DEBUG = True
|
2014-01-14 01:07:13 +02:00
|
|
|
#SERVER_NAME = 'realms.dev:8000'
|
|
|
|
DOMAIN = 'realms.dev'
|
2013-12-09 22:24:22 +02:00
|
|
|
PORT = 8000
|