Allow all config options to be specified in realms-wiki.json
This commit is contained in:
parent
dd5cbf5910
commit
20810138da
|
@ -169,8 +169,6 @@ WIKI_LOCKED_PAGES = []
|
||||||
|
|
||||||
ROOT_ENDPOINT = 'wiki.page'
|
ROOT_ENDPOINT = 'wiki.page'
|
||||||
|
|
||||||
globals().update(read())
|
|
||||||
|
|
||||||
# Used by Flask-Login
|
# Used by Flask-Login
|
||||||
LOGIN_DISABLED = ALLOW_ANON
|
LOGIN_DISABLED = ALLOW_ANON
|
||||||
|
|
||||||
|
@ -196,6 +194,8 @@ if ENV != "DEV":
|
||||||
|
|
||||||
MODULES = ['wiki', 'search', 'auth']
|
MODULES = ['wiki', 'search', 'auth']
|
||||||
|
|
||||||
|
globals().update(read())
|
||||||
|
|
||||||
if globals().get('AUTH_LOCAL_ENABLE'):
|
if globals().get('AUTH_LOCAL_ENABLE'):
|
||||||
MODULES.append('auth.local')
|
MODULES.append('auth.local')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue