mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-09 16:37:23 +01:00
Merge remote-tracking branch 'upstream/master' into mgmt-auth
Conflicts: management/daemon.py
This commit is contained in:
@@ -109,6 +109,9 @@ def do_updates():
|
||||
if __name__ == '__main__':
|
||||
if "DEBUG" in os.environ: app.debug = True
|
||||
|
||||
if not app.debug:
|
||||
app.logger.addHandler(utils.create_syslog_handler())
|
||||
|
||||
# For testing on the command line, you can use `curl` like so:
|
||||
# curl --user $(</var/lib/mailinabox/api.key): http://localhost:10222/mail/users
|
||||
auth_service.write_key()
|
||||
@@ -117,6 +120,5 @@ if __name__ == '__main__':
|
||||
# debug console and enter that as the username
|
||||
app.logger.info('API key: ' + auth_service.key)
|
||||
|
||||
|
||||
app.run(port=10222)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user