traefik/docs/configuration/backends/boltdb.md

60 lines
1 KiB
Markdown
Raw Normal View History

# BoltDB Backend
2017-08-25 19:32:33 +00:00
2017-09-11 17:10:04 +00:00
Træfik can be configured to use BoltDB as a backend configuration.
2017-08-25 19:32:33 +00:00
```toml
################################################################
# BoltDB configuration backend
################################################################
2017-09-11 17:10:04 +00:00
# Enable BoltDB configuration backend.
2017-08-25 19:32:33 +00:00
[boltdb]
2017-09-11 17:10:04 +00:00
# BoltDB file.
2017-08-25 19:32:33 +00:00
#
# Required
2017-09-11 17:10:04 +00:00
# Default: "127.0.0.1:4001"
2017-08-25 19:32:33 +00:00
#
endpoint = "/my.db"
2017-09-11 17:10:04 +00:00
# Enable watch BoltDB changes.
2017-08-25 19:32:33 +00:00
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: true
2017-08-25 19:32:33 +00:00
#
watch = true
# Prefix used for KV store.
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: "/traefik"
2017-08-25 19:32:33 +00:00
#
prefix = "/traefik"
2017-09-11 17:10:04 +00:00
# Override default configuration template.
# For advanced users :)
2017-08-25 19:32:33 +00:00
#
# Optional
#
filename = "boltdb.tmpl"
2017-09-11 17:10:04 +00:00
# Use BoltDB user/pass authentication.
#
# Optional
#
# username = foo
# password = bar
# Enable BoltDB TLS connection.
#
# Optional
#
# [boltdb.tls]
# ca = "/etc/ssl/ca.crt"
# cert = "/etc/ssl/boltdb.crt"
# key = "/etc/ssl/boltdb.key"
# insecureskipverify = true
2017-09-07 10:02:03 +00:00
```
2017-09-11 17:10:04 +00:00
To enable constraints see [backend-specific constraints section](/configuration/commons/#backend-specific).