diff --git a/README.md b/README.md index 533f6aa5e6199e868cde4c4f50341f55880471f4..d654c3b85223ab403e2c15617c0c2a07e6f2915b 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ gitlab-docker-autodep \ ``` You can then configure your project's webhooks with the URL -`http://localhost:14001/webhook`, with the *Trigger* checkbox set only +`http://localhost:14001/`, with the *Trigger* checkbox set only on *Pipeline events*. It can be useful to run the *rebuild* command from a cron job, for diff --git a/gitlab_docker_autodep/server.py b/gitlab_docker_autodep/server.py index 1273f88687a4aee5f448f8bc171ce01c715e4a06..d9a814370c00b86eba378fa492a6dcab7d5ccee4 100644 --- a/gitlab_docker_autodep/server.py +++ b/gitlab_docker_autodep/server.py @@ -113,13 +113,7 @@ def run_app(gitlab_url, registry_hostname, gitlab_token, app.run(host=bind_host, port=bind_port) -@app.route('/') -def app_index(): - return make_response( - 200, ['<html><body><h1>gitlab-docker-autodep</h1></body></html>']) - - -@app.route('/webhook', methods=('POST',)) +@app.route('/', methods=('POST',)) def app_webhook(): # Authenticate the request, if configured to do so. if app.config['WEBHOOK_AUTH_TOKEN']: