Skip to content

Commit 3f030d1

Browse files
authored
Add missing sample configuration file (#66)
* Added sample configuration file Signed-off-by: Levi Harrison <[email protected]>
1 parent f7b2a5d commit 3f030d1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/web-config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TLS and basic authentication configuration example.
2+
#
3+
# Additionally, a certificate and a key file are needed.
4+
tls_server_config:
5+
cert_file: server.crt
6+
key_file: server.key
7+
8+
# Usernames and passwords required to connect.
9+
# Passwords are hashed with bcrypt: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md#about-bcrypt.
10+
basic_auth_users:
11+
alice: $2y$10$mDwo.lAisC94iLAyP81MCesa29IzH37oigHC/42V2pdJlUprsJPze
12+
bob: $2y$10$hLqFl9jSjoAAy95Z/zw8Ye8wkdMBM8c5Bn1ptYqP/AXyV0.oy0S8m

docs/web-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ basic_auth_users:
7575
[ <string>: <secret> ... ]
7676
```
7777

78-
[A sample configuration file](web.yml) is provided.
78+
[A sample configuration file](web-config.yml) is provided.
7979

8080
## About bcrypt
8181

0 commit comments

Comments
 (0)