1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

make auth optional

This commit is contained in:
2016-06-16 23:42:28 +02:00
parent 32db01ccfc
commit 5de90f0699
3 changed files with 16 additions and 8 deletions

3
app.py
View File

@@ -50,8 +50,7 @@ def init_app(configpath):
default_app().mount("/hooks/", pelican_deploy.webhookbottle.app)
pelican_deploy.statusbottle.set_auth_basic_fn(getattr(config,
"STATUS_AUTH_BASIC_FN",
lambda us, pw: False))
"STATUS_AUTH_BASIC_FN", None))
pelican_deploy.statusbottle.set_runners(**runners)
default_app().mount("/status/", pelican_deploy.statusbottle.app)