Files
gniza4cp/etc/gniza.conf.example
shuki fac7dc6c80 Add SMTP notification support with WHM settings UI
Send email via curl SMTP when SMTP_HOST is configured, falling back
to system mail/sendmail when empty. NOTIFY_EMAIL now accepts
comma-separated addresses. WHM Settings page gets an SMTP card
with Send Test Email button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 03:46:47 +02:00

36 lines
2.3 KiB
Plaintext

# gniza configuration
# Copy to /etc/gniza/gniza.conf and edit
#
# Remote destinations: /etc/gniza/remotes.d/<name>.conf
# Backup schedules: /etc/gniza/schedules.d/<name>.conf
# ── Local Settings ─────────────────────────────────────────────
TEMP_DIR="/usr/local/gniza/workdir" # Working directory for pkgacct output
# ── Account Filtering ──────────────────────────────────────────
INCLUDE_ACCOUNTS="" # Comma-separated list, empty = all accounts
EXCLUDE_ACCOUNTS="nobody" # Comma-separated list of accounts to exclude
# ── Logging ────────────────────────────────────────────────────
LOG_DIR="/var/log/gniza" # Log directory
LOG_LEVEL="info" # debug, info, warn, error
LOG_RETAIN=90 # Days to keep log files
# ── Notifications ──────────────────────────────────────────────
NOTIFY_EMAIL="" # Comma-separated email addresses (empty = disabled)
NOTIFY_ON="failure" # always, failure, never
# ── SMTP Settings (optional) ─────────────────────────────────
SMTP_HOST="" # SMTP server hostname (empty = use system mail)
SMTP_PORT=587 # SMTP port (587=TLS/STARTTLS, 465=SSL, 25=none)
SMTP_USER="" # SMTP username
SMTP_PASSWORD="" # SMTP password
SMTP_FROM="" # From address (falls back to SMTP_USER)
SMTP_SECURITY="tls" # tls (STARTTLS), ssl (implicit), none
# ── Advanced ───────────────────────────────────────────────────
LOCK_FILE="/var/run/gniza.lock"
SSH_TIMEOUT=30 # SSH connection timeout in seconds
SSH_RETRIES=3 # Number of rsync retry attempts
RSYNC_EXTRA_OPTS="" # Extra options to pass to rsync