++ new project
This commit is contained in:
78
.env.example
78
.env.example
@@ -1,78 +0,0 @@
|
||||
# ============================================================
|
||||
# .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",
|
||||
# "local_path": "/mount/path/in/container",
|
||||
# "interval": 300
|
||||
# }
|
||||
#
|
||||
# Esempio con 2 sync:
|
||||
#
|
||||
SYNC_CONFIGS='[
|
||||
{"id": "sync1", "bucket": "bucket-a", "local_path": "/data/local1", "interval": 300},
|
||||
{"id": "sync2", "bucket": "bucket-b", "local_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/local1 # Primo sync
|
||||
# - ./data/sync2:/data/local2 # Secondo sync
|
||||
# - sync-state:/data/state # Stato condiviso
|
||||
#
|
||||
LOCAL_SYNC_PATH_1=./data/sync1
|
||||
LOCAL_SYNC_PATH_2=./data/sync2
|
||||
|
||||
# Fallback legacy (sync singola)
|
||||
LOCAL_SYNC_PATH=./data
|
||||
Reference in New Issue
Block a user