Files
bichon/env/rustmailer.env
T
2025-11-19 02:14:37 +08:00

45 lines
1.2 KiB
Bash

# Log level: trace, debug, info, warn, error
RUSTMAILER_LOG_LEVEL=info
# HTTP server port
RUSTMAILER_HTTP_PORT=15630
# Public URL for this RustMailer instance
RUSTMAILER_PUBLIC_URL=http://localhost:15630
# Enable ANSI-colored logs (for terminal output)
RUSTMAILER_ANSI_LOGS=false
# Enable JSON-formatted logs (for machine parsing)
RUSTMAILER_JSON_LOGS=false
# Persist logs to files
RUSTMAILER_LOG_TO_FILE=false
# Max number of server log files to retain
RUSTMAILER_MAX_SERVER_LOG_FILES=5
# Encryption password for stored secrets (change this in production!)
RUSTMAILER_ENCRYPT_PASSWORD=change-this-default-password-now
# Root directory for persistent storage (adjust to your environment)
RUSTMAILER_ROOT_DIR=/data/bichon-data
# Enable API access token validation
RUSTMAILER_ENABLE_ACCESS_TOKEN=false
# IP address to bind the HTTP and gRPC servers to (default: 0.0.0.0)
RUSTMAILER_BIND_IP=
# Comma-separated list of allowed CORS origins (e.g. https://app.example.com)
RUSTMAILER_CORS_ORIGINS=
# Cache duration (in seconds) for CORS preflight responses
RUSTMAILER_CORS_MAX_AGE=86400
# Enable HTTPS for REST API server
RUSTMAILER_ENABLE_REST_HTTPS=false
# Enable HTTP response compression (gzip or brotli)
RUSTMAILER_HTTP_COMPRESSION_ENABLED=true