++ Add Readme + Multiple S3 Configs

This commit is contained in:
2026-03-18 14:11:45 +01:00
parent d2080c936f
commit cb6536f656
9 changed files with 856 additions and 93 deletions

74
.env.example Normal file
View File

@@ -0,0 +1,74 @@
# ============================================================
# .env - Configurazione S3-to-Local Sync (Multi-Sync Support)
# ============================================================
# --- S3 Endpoint ---
S3_ENDPOINT=https://your-s3-endpoint.com
S3_ACCESS_KEY=your_access_key_here
S3_SECRET_KEY=your_secret_key_here
S3_REGION=us-east-1
S3_FORCE_PATH_STYLE=true
S3_INSECURE_SSL=false
# --- Default Bucket (usato se SYNC_CONFIGS non è definito) ---
S3_BUCKET=my-default-bucket
S3_PATH_PREFIX=
# --- Sync Mode & Scheduling ---
SYNC_MODE=mirror
SYNC_INTERVAL=300
SYNC_SCHEDULE=
SYNC_ON_START=true
SYNC_TRANSFERS=4
SYNC_BANDWIDTH=0
SYNC_LOG_LEVEL=INFO
# --- Web Dashboard ---
WEB_PORT=8080
# --- Sistema ---
PUID=1000
PGID=1000
TZ=Europe/Rome
# ============================================================
# OPZIONALE: Multi-Sync Configuration (multiple bucket:folder)
# ============================================================
#
# Decommentare e configurare per usare MULTIPLE sync 1:1
#
# Formato: JSON array di oggetti con struttura:
# {
# "id": "sync_identifier",
# "bucket": "bucket-name",
# "path": "/mount/path/in/container",
# "interval": 300
# }
#
# Esempio con 2 sync:
#
SYNC_CONFIGS='[
{"id": "sync1", "bucket": "bucket-a", "path": "/data/local", "interval": 300},
{"id": "sync2", "bucket": "bucket-b", "path": "/data/local2", "interval": 600}
]'
# ============================================================
# Notifiche Gotify (Push Notifications)
# ============================================================
GOTIFY_ENABLED=false
GOTIFY_URL=https://your-gotify-server.com
GOTIFY_TOKEN=your-gotify-token-here
GOTIFY_PRIORITY=5
# ============================================================
# Volumi Docker (docker-compose.yml)
# ============================================================
# Se usi docker-compose, configura anche i volumi per le
# multiple sync nel docker-compose.yml:
#
# volumes:
# - ./data/sync1:/data/local # Primo sync
# - ./data/sync2:/data/local2 # Secondo sync
# - sync-state:/data/state # Stato condiviso
#
LOCAL_SYNC_PATH=./data