-
Notifications
You must be signed in to change notification settings - Fork 6
/
default_config.yaml
38 lines (38 loc) · 1.66 KB
/
default_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# The TCP port which the daemon listens on.
host: "::"
port: 443
# Directory to www pages. Can be changed in order to host a custom website.
www: /srv/bmcd/www/
# if true, users trying to access the daemon over HTTP, will be redirected to
# HTTPS.
redirect_http: true
store:
# The bmcd contains a write mechanism that writes its internal key/value store
# back to the file-system. This happens on a timeout started from the last
# write. Commenting out `write_timeout` disables the timeout mechanism. In
# this case changes are written to the file-system directly. Value is in seconds.
write_timeout: 3
authentication:
# The amount of attempts a user can make before it get's an access denied
# penalty. Any subsequent attempts will exponentially worsen the period before
# the access ban gets lifted again. Note that these bans are not persisted, a
# restart of the daemon will reset the bookkeeping. Access denied penalty = 1
# min to a maximum of 1024 min, or 17h.
authentication_attempts: 5
# The duration of an access token before it expires. Clients are
# requested to re-authenticate when they issue a request with an expired
# token. The expiry date is counted from the last successful usage of the
# token. Value is in seconds.
token_expires: 10800
tls:
certificate: /etc/ssl/certs/bmcd_cert.pem
private_key: /etc/ssl/certs/bmcd_key.pem
log:
# send logging to std out
stdout: false
# customize the logging filter by changing this directive variable. for info
# about the syntax see:
# https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
directive: "info,actix_server=off"
coloring: false