166 lines
7.0 KiB
TOML
166 lines
7.0 KiB
TOML
# RustBox 0.1.2 - packaged production configuration (DEB/RPM)
|
|
#
|
|
# The active values below intentionally keep the existing package profile.
|
|
# Alternative storage/cluster examples are provided at the end of this file
|
|
# and are fully commented out, so they do not change the default package setup.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Server
|
|
# -----------------------------------------------------------------------------
|
|
host = "0.0.0.0"
|
|
port = 3001
|
|
environment = "production"
|
|
data_dir = "/var/lib/rustbox"
|
|
log_dir = "/var/log/rustbox"
|
|
log_level = "warning"
|
|
|
|
# Database, sessions and "remember me".
|
|
# With no database/session backend keys configured, the whole application uses
|
|
# SQLite at data_dir/rustbox.sqlite; sessions are stored in that database.
|
|
cluster_shared_data_dir = false
|
|
search_index_backend = "tantivy"
|
|
session_timeout_hours = 72
|
|
remember_me_enabled = true
|
|
remember_me_days = 30
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Mail endpoints
|
|
# -----------------------------------------------------------------------------
|
|
imap_host = "localhost"
|
|
imap_port = 993
|
|
smtp_host = "localhost"
|
|
smtp_port = 587
|
|
tls_enabled = true
|
|
# This packaged profile intentionally keeps certificate verification disabled.
|
|
# For remote production mail servers, tls_verify = true is recommended.
|
|
tls_verify = false
|
|
|
|
# Size limits in MiB.
|
|
max_attachment_size_mb = 50
|
|
max_message_size_mb = 100
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# ManageSieve
|
|
# -----------------------------------------------------------------------------
|
|
sieve_port = 4190
|
|
sieve_tls_mode = "none"
|
|
sieve_allow_insecure_auth = true
|
|
sieve_timeout_secs = 10
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Mailbox/UI defaults
|
|
# -----------------------------------------------------------------------------
|
|
default_junk_folder = "Spam"
|
|
default_theme = "system"
|
|
default_interface_skin = "apple-mail"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Reverse proxy and outgoing mail
|
|
# -----------------------------------------------------------------------------
|
|
trusted_proxies = "127.0.0.1,::1"
|
|
outgoing_headers = []
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# OpenPGP
|
|
# -----------------------------------------------------------------------------
|
|
pgp_enabled = true
|
|
pgp_wkd_enabled = true
|
|
pgp_hkp_enabled = false
|
|
pgp_hkp_url = "https://keys.openpgp.org"
|
|
pgp_network_timeout_secs = 10
|
|
pgp_max_key_bytes = 1048576
|
|
pgp_allow_private_export = true
|
|
|
|
# =============================================================================
|
|
# OPTIONAL CONFIGURATION EXAMPLES
|
|
# =============================================================================
|
|
# Do not enable more than one conflicting example at the same time.
|
|
# Copy/uncomment only the keys required by the selected profile.
|
|
#
|
|
# session_encryption_key must represent the same 32-byte key on every node that
|
|
# shares the configured SQL database or Redis session backend. Keep it secret and outside source control.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile A: standalone SQLite application database (default package behavior)
|
|
# -----------------------------------------------------------------------------
|
|
# No extra keys are required. The equivalent explicit configuration is:
|
|
# database_backend = "sqlite"
|
|
# session_backend = "database"
|
|
# cluster_mode = false
|
|
#
|
|
# RustBox stores account data and sessions in data_dir/rustbox.sqlite and
|
|
# creates/uses the local session encryption key for this single-node setup.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile B: PostgreSQL application database (data + database sessions)
|
|
# -----------------------------------------------------------------------------
|
|
# database_backend = "pgsql"
|
|
# database_url = "postgres://rustbox:change-me@127.0.0.1/rustbox"
|
|
# session_backend = "database"
|
|
# cluster_mode = false
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile C: MySQL application database (data + database sessions; MySQL 8.0.13+)
|
|
# -----------------------------------------------------------------------------
|
|
# database_backend = "mysql"
|
|
# database_url = "mysql://rustbox:change-me@127.0.0.1/rustbox"
|
|
# session_backend = "database"
|
|
# cluster_mode = false
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile D: Redis sessions, single application node (account data stays in database_backend)
|
|
# -----------------------------------------------------------------------------
|
|
# session_backend = "redis"
|
|
# redis_url = "redis://127.0.0.1:6379/"
|
|
# cluster_mode = false
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|
|
#
|
|
# If Redis requires authentication, include credentials in redis_url or use the
|
|
# supported Redis password configuration for your deployment.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile E: Redis Sentinel sessions for multiple RustBox nodes
|
|
# -----------------------------------------------------------------------------
|
|
# Cluster nodes must also share the main application database.
|
|
# data_dir must be a shared filesystem mounted at the same absolute path on every node.
|
|
# database_backend = "pgsql"
|
|
# database_url = "postgres://rustbox:change-me@db.internal/rustbox"
|
|
# session_backend = "redis"
|
|
# cluster_mode = true
|
|
# cluster_shared_data_dir = true
|
|
# search_index_backend = "disabled"
|
|
# pgp_enabled = false
|
|
# redis_sentinel_nodes = ["sentinel-a:26379", "sentinel-b:26379", "sentinel-c:26379"]
|
|
# redis_sentinel_master = "mymaster"
|
|
# redis_sentinel_password = "sentinel-secret"
|
|
# redis_password = "redis-secret"
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile F: PostgreSQL application database shared by a RustBox cluster
|
|
# data_dir must be shared and mounted at the same absolute path on every node.
|
|
# -----------------------------------------------------------------------------
|
|
# database_backend = "pgsql"
|
|
# database_url = "postgres://rustbox:change-me@db.internal/rustbox"
|
|
# session_backend = "database"
|
|
# cluster_mode = true
|
|
# cluster_shared_data_dir = true
|
|
# search_index_backend = "disabled"
|
|
# pgp_enabled = false
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Profile G: MySQL application database shared by a RustBox cluster
|
|
# data_dir must be shared and mounted at the same absolute path on every node.
|
|
# -----------------------------------------------------------------------------
|
|
# database_backend = "mysql"
|
|
# database_url = "mysql://rustbox:change-me@db.internal/rustbox"
|
|
# session_backend = "database"
|
|
# cluster_mode = true
|
|
# cluster_shared_data_dir = true
|
|
# search_index_backend = "disabled"
|
|
# pgp_enabled = false
|
|
# session_encryption_key = "BASE64_32_BYTE_KEY"
|