40 lines
829 B
Python
40 lines
829 B
Python
import socket
|
|
|
|
HOSTNAME = socket.gethostname()
|
|
|
|
ENV = 'DEV'
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://deploy:dbpassword@localhost:5432/realms'
|
|
|
|
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':
|
|
#SERVER_NAME = 'realms.io'
|
|
PORT = 80
|
|
DOMAIN = 'realms.io'
|
|
else:
|
|
DEBUG = True
|
|
ASSETS_DEBUG = True
|
|
#SERVER_NAME = 'realms.dev:8000'
|
|
DOMAIN = 'realms.dev'
|
|
PORT = 8000 |