mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
doorlockd.py: switch to config file
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
ae0d4f5aa2
commit
a21beefe74
2
doorlockd-new/config.cfg
Normal file
2
doorlockd-new/config.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
DEBUG = True
|
||||||
|
SECRET_KEY = 'foobar'
|
@ -39,7 +39,7 @@ default_binddn = 'cn=%s,ou=people,dc=binary-kitchen,dc=de'
|
|||||||
html_title = 'Binary Kitchen Doorlock (%s - v%s)' % (__status__, __version__)
|
html_title = 'Binary Kitchen Doorlock (%s - v%s)' % (__status__, __version__)
|
||||||
|
|
||||||
webapp = Flask(__name__)
|
webapp = Flask(__name__)
|
||||||
webapp.config['SECRET_KEY'] = 'foobar'
|
webapp.config.from_pyfile('config.cfg')
|
||||||
socketio = SocketIO(webapp, async_mode=None)
|
socketio = SocketIO(webapp, async_mode=None)
|
||||||
Bootstrap(webapp)
|
Bootstrap(webapp)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user