Sfoglia il codice sorgente

Add config file example and ignore the real config file

Brendan Abolivier 6 anni fa
parent
commit
39c09b7f77
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
2 ha cambiato i file con 36 aggiunte e 0 eliminazioni
  1. 2
    0
      .gitignore
  2. 34
    0
      config.example.yaml

+ 2
- 0
.gitignore Vedi File

@@ -1,2 +1,4 @@
1 1
 bin
2 2
 pkg
3
+
4
+config.yaml

+ 34
- 0
config.example.yaml Vedi File

@@ -0,0 +1,34 @@
1
+# Settings to connect to the Grafana instance.
2
+grafana:
3
+    # Base URL for the Grafana instance.
4
+    base_url: https://grafana.company.tld
5
+    # Grafana API key. This is generated by Grafana, as explained at
6
+    # http://docs.grafana.org/http_api/auth/#create-api-token
7
+    api_key: apiauthkey
8
+
9
+# Settings to interact with the Git repository. Currently only SSH repos are
10
+# supported.
11
+git:
12
+    # SSH URL to the repository. The user part (usually "git@" at the beginning
13
+    # of the URL) must be excluded.
14
+    url: "git.company.tld:it/grafana-dashboards.git"
15
+    # Path to the private key used to authenticate on Git. It is recommended to
16
+    # use a passphraseless key.
17
+    private_key: /etc/grafana-dashboard-manager/id_rsa_nopasswd
18
+    # Path to the directory where the git repository lies on the disk. If the
19
+    # directory doesn't exist, it will be created and the repository will be
20
+    # cloned into it.
21
+    clone_path: /tmp/grafana-dashboards
22
+
23
+# Settings to configure the Git webhook. Currently only GitLab webhooks are
24
+# supported.
25
+webhook:
26
+    # Interface the webhook will listen on.
27
+    interface: 127.0.0.1
28
+    # Port the webhool will listen on.
29
+    port: 8080
30
+    # Path on which the webhook will live. Full webhook URL will be
31
+    # interface:port/path.
32
+    path: /gitlab-webhook
33
+    # Secret GitLab will use to authenticate the requests.
34
+    secret: mysecret