apiary/apiary.toml

59 lines
1.5 KiB
TOML
Raw Normal View History

2021-04-10 05:58:01 +00:00
# Apiary config file
[Store]
# Type of store to use
# Must be "memory" or "postgres"
# Default: "memory"
Type = "memory"
[Store.Postgres]
# Connection string for postgres
# Must be set if using Store.Type = "postgres"
2021-04-10 09:24:10 +00:00
DSN = "postgresql://user:password@example.org:5432/apiary"
2021-04-10 05:58:01 +00:00
[Honeypot]
# Path to SSH host key
# If empty, a new one will be generated each time the service starts
# Default: ""
HostKeyPath = ""
# Log level for SSH Honeypot
# Must be either "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "NONE"
# Default: "INFO"
LogLevel = "INFO"
# Address and port to listen to
# Default: ":2222"
ListenAddr = ":2222"
2021-04-11 00:24:39 +00:00
# Throttle incoming and outgoing data per connection
# Values are in bytes per second. Empty means no unlimited
# Default: ""
ThrottleSpeed = 10240
2021-04-10 05:58:01 +00:00
[Frontend]
# Log level for SSH Honeypot
# Must be either "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "NONE"
# Default: "INFO"
LogLevel = "INFO"
# Enable access logging
# Default: true
AccessLogEnable = true
# Address and port to listen to
# Default: ":8080"
ListenAddr = ":8080"
2021-04-10 07:03:00 +00:00
[Frontend.Autocert]
# Enable using letsencrypt for automatic certificates
2021-04-10 09:24:10 +00:00
# When enabled Frontend.ListenAddr will be ignored, and the server
# will listen to 443
2021-04-10 07:03:00 +00:00
# Default: false
Enable = false
2021-04-10 09:24:10 +00:00
# Email address for certificate owner
Email = ""
2021-04-10 07:03:00 +00:00
# Domains to use for certificates. Required when using autocert.
# Default: ""
2021-04-10 09:24:10 +00:00
Domains = ["example.org"]
2021-04-10 07:03:00 +00:00
# Dir where certificates are cached.
# Default: "/tmp"
CacheDir = "/var/apiary/certs"
2021-04-10 09:24:10 +00:00
# Redirect HTTP to HTTPS
# Default: true
RedirectHTTP = true