apiary/apiary.toml

95 lines
2.2 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"
2021-09-17 00:01:43 +00:00
# Enable caching
# Default: false
EnableCache = false
2021-04-10 05:58:01 +00:00
[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: ""
2021-04-13 05:30:07 +00:00
ThrottleSpeed = 10240.0
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
# Disable logging of successful requests to metrics endpoint
# Default: false
AccessLogIgnoreMetrics = false
2021-04-10 05:58:01 +00:00
# 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
2021-10-21 08:33:28 +00:00
[Ports]
# Enable the port listener.
# Default: false
2021-11-06 13:04:11 +00:00
Enable = false
2021-10-21 08:33:28 +00:00
# Which address to listen on.
# Default: "" (listen to all addresses)
Addr = ""
# Which TCP ports to listen to.
# Default: []
TCPPorts = ["25"]
# Which UDP ports to listen to.
# Default: []
UDPPorts = ["25"]
2021-11-06 13:04:11 +00:00
[SMTP]
# Enable the port listener.
# Default: false
Enable = true
# Which address and port to listen on.
# Default: ":25"
Addr = ":25"
# Enable collecting prometheus metrics
# Default: false
EnableMetrics = true