From 929f4691b68e602649f21eb96f31e0804b8ebff8 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 14 Feb 2019 12:23:34 +0100 Subject: [PATCH] [TAST] improve config example --- config_example.conf | 50 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/config_example.conf b/config_example.conf index 2a4f08a..d5bc630 100644 --- a/config_example.conf +++ b/config_example.conf @@ -5,9 +5,53 @@ webserver_bind = ":8080" host = "fireorbit.de" username = "bot@fireorbit.de" password = "example" -startup_notify_user = ["geno@fireorbit.de"] +startup_notify_user = ["user@fireorbit.de"] startup_notify_muc = [] +# suported hooks are, which could be declared multiple times with different `secrets` (see [[hooks.grafana]]): +[[hooks.grafana]] [[hooks.git]] -secret = "github-FreifunkBremen-yanic-notShared-Secret" -notify_user = ["geno@fireorbit.de"] +[[hooks.gitlab]] +[[hooks.circleci]] + +# every hook could have following attributes: +secret = "" +notify_muc = [] +notify_user = [] + + +# for handling webhooks from grafana +# at http://localhost:8080/grafana +# for image support you have to enable `external_image_storage` (e.g. `provider = local`) +# see more at http://docs.grafana.org/installation/configuration/#external-image-storage +[[hooks.grafana]] +secret = "dev.sum7.eu-aShared-Secret" +notify_muc = ["monitoring@conference.chat.sum7.eu"] + +[[hooks.grafana]] +secret = "dev.sum7.eu-aShared-Secret-for importend messages" +notify_user = ["user@fireorbit.de"] + + +# for handling webhooks from git software (e.g. gitea, gogs, github) +# at http://localhost:8080/git +[[hooks.git]] +secret = "github-FreifunkBremen-yanic-aShared-Secret" +notify_muc = [] +notify_user = ["user@fireorbit.de"] + +# for handling webhooks from gitlab +# at http://localhost:8080/gitlab +[[hooks.gitlab]] +secret = "dev.sum7.eu-aShared-Secret" +notify_muc = [] +notify_user = ["user@fireorbit.de"] + +# for handling webhooks from circleci +# at http://localhost:8080/circleci +[[hooks.circleci]] +secret = "dev.sum7.eu-aShared-Secret" +notify_muc = [] +notify_user = ["user@fireorbit.de"] + +