WIP
This commit is contained in:
parent
b02d3db684
commit
86f0549e44
24 changed files with 710 additions and 398 deletions
|
@ -7,19 +7,35 @@ ENV = 'DEV'
|
|||
DEBUG = True
|
||||
ASSETS_DEBUG = True
|
||||
|
||||
SQLALCHEMY_ECHO = True
|
||||
|
||||
PORT = 80
|
||||
BASE_URL = 'http://realms.dev'
|
||||
|
||||
REDIS_HOST = '127.0.0.1'
|
||||
REDIS_PORT = 6379
|
||||
REDIS_DB = '0'
|
||||
DB_URI = 'sqlite:////home/deploy/wiki.db'
|
||||
|
||||
SECRET = 'K3dRq1q9eN72GJDkgvyshFVwlqHHCyPI'
|
||||
CACHE_TYPE = 'simple'
|
||||
|
||||
# Redis Example
|
||||
"""
|
||||
CACHE_TYPE = 'redis'
|
||||
CACHE_REDIS_HOST = '127.0.0.1'
|
||||
CACHE_REDIS_PORT = 6379
|
||||
CACHE_REDIS_DB = '0'
|
||||
"""
|
||||
|
||||
RECAPTCHA_ENABLE = True
|
||||
RECAPTCHA_USE_SSL = False
|
||||
RECAPTCHA_PUBLIC_KEY = "6LfYbPkSAAAAAB4a2lG2Y_Yjik7MG9l4TDzyKUao"
|
||||
RECAPTCHA_PRIVATE_KEY = "6LfYbPkSAAAAAG-KlkwjZ8JLWgwc9T0ytkN7lWRE"
|
||||
RECAPTCHA_OPTIONS = {}
|
||||
|
||||
SECRET_KEY = 'K3dRq1q9eN72GJDkgvyshFVwlqHHCyPI'
|
||||
|
||||
WIKI_PATH = '/home/deploy/wiki'
|
||||
WIKI_HOME = 'home'
|
||||
|
||||
ALLOW_ANON = True
|
||||
LOGIN_DISABLED = ALLOW_ANON
|
||||
|
||||
ROOT_ENDPOINT = 'wiki.page'
|
||||
|
||||
|
@ -27,10 +43,11 @@ with open(os.path.join(os.path.dirname(__file__) + "/../../", 'config.json')) as
|
|||
__settings = json.load(f)
|
||||
globals().update(__settings)
|
||||
|
||||
# String trailing slash
|
||||
if BASE_URL.endswith('/'):
|
||||
BASE_URL = BASE_URL[-1]
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = DB_URI
|
||||
|
||||
_url = urlparse(BASE_URL)
|
||||
RELATIVE_PATH = _url.path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue