[go: nahoru, domu]

Skip to content

Commit

Permalink
Add missing sample configuration file (prometheus#66)
Browse files Browse the repository at this point in the history
* Added sample configuration file

Signed-off-by: Levi Harrison <git@leviharrison.dev>
  • Loading branch information
LeviHarrison authored and mrueg committed Jan 29, 2022
1 parent 10b9430 commit 40a8544
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/web-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# TLS and basic authentication configuration example.
#
# Additionally, a certificate and a key file are needed.
tls_server_config:
cert_file: server.crt
key_file: server.key

# Usernames and passwords required to connect.
# Passwords are hashed with bcrypt: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md#about-bcrypt.
basic_auth_users:
alice: $2y$10$mDwo.lAisC94iLAyP81MCesa29IzH37oigHC/42V2pdJlUprsJPze
bob: $2y$10$hLqFl9jSjoAAy95Z/zw8Ye8wkdMBM8c5Bn1ptYqP/AXyV0.oy0S8m
2 changes: 1 addition & 1 deletion docs/web-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ basic_auth_users:
[ <string>: <secret> ... ]
```

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

## About bcrypt

Expand Down

0 comments on commit 40a8544

Please sign in to comment.