apiary/apiary.toml

48 lines
1.2 KiB
TOML

# 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"
DSN = "postgresql://film:film@10.69.10.130:5432/film?sslmode=disable"
[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"
[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"
[Frontend.Autocert]
# Enable using letsencrypt for automatic certificates
# Default: false
Enable = false
# Domains to use for certificates. Required when using autocert.
# Default: ""
Domains = "example.org"
# Dir where certificates are cached.
# Default: "/tmp"
CacheDir = "/var/apiary/certs"