mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 17:40:31 +00:00
Merge remote-tracking branch 'key'
This commit is contained in:
commit
e3246fd751
5
cps/__init__.py
Executable file → Normal file
5
cps/__init__.py
Executable file → Normal file
@ -89,7 +89,10 @@ def create_app():
|
|||||||
log.info('Starting Calibre Web...')
|
log.info('Starting Calibre Web...')
|
||||||
Principal(app)
|
Principal(app)
|
||||||
lm.init_app(app)
|
lm.init_app(app)
|
||||||
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
|
if os.environ.get('FLASK_DEBUG'):
|
||||||
|
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
|
||||||
|
else:
|
||||||
|
app.secret_key = os.getenv('SECRET_KEY', os.urandom(32))
|
||||||
|
|
||||||
web_server.init_app(app, config)
|
web_server.init_app(app, config)
|
||||||
db.setup_db(config)
|
db.setup_db(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user