4df38342f9
* ajout des colonnes en .env
50 lines
2.3 KiB
Bash
50 lines
2.3 KiB
Bash
# ─────────────────────────────────────────────────────────────
|
||
# Configuration du daemon imapsync_daemon.py
|
||
# Copier en .env et adapter — NE PAS committer ce fichier
|
||
# ─────────────────────────────────────────────────────────────
|
||
|
||
# ── Grist ────────────────────────────────────────────────────
|
||
GRIST_API_KEY=votre_cle_api_grist
|
||
GRIST_DOC_ID=votre_id_document_grist
|
||
GRIST_BASE_URL=https://grist.votre-instance.fr
|
||
|
||
# Tables Grist
|
||
TABLE_BALS=BALs
|
||
TABLE_HISTORIQUE=Historique
|
||
|
||
# Colonnes Grist TABLE_BALS
|
||
COL_EMAIL=Courriel #Addresse a synchoniser
|
||
COL_SYNC=Synchronisation #Bool si vrai, synchoniser
|
||
COL_PRIORITY=priority
|
||
COL_NB_SYNCS=Nb_syncs #contient le nombre de synchonisation de la BAL
|
||
|
||
# Colonnes Grist TABLE_HISTORIQUE
|
||
COL_BAL=Bal
|
||
COL_STATUS=Status
|
||
COL_NB_EMAILS=Nb_emails
|
||
COL_DUREE_SEC=Duree_sec
|
||
COL_LOG=Log
|
||
COL_DATE=Date
|
||
|
||
# ── Serveurs IMAP ─────────────────────────────────────────────
|
||
HOST1=imap.source.fr
|
||
HOST2=imap.destination.fr
|
||
|
||
# ── Compte administrateur source (OAuth2) ────────────────────
|
||
USER1_PREFIX=admin@source.fr
|
||
OAUTH2_TOKEN_FILE=/home/migration/migration-dinum/oauth2_imap/tokens/oauth2_migration.txt
|
||
|
||
# ── Compte administrateur destination ────────────────────────
|
||
USER2_PREFIX=admin@destination.fr
|
||
PASS2=mot_de_passe_admin_destination
|
||
|
||
# ── imapsync ─────────────────────────────────────────────────
|
||
IMAPSYNC=/usr/bin/imapsync
|
||
TMPDIR_CACHE=/home/migration/imapsync_cache
|
||
|
||
# ── Parallélisme et polling ───────────────────────────────────
|
||
N_WORKERS=4
|
||
POLL_INTERVAL=30
|
||
# Part des slots réservés aux BAL jamais synchronisées (0.0 – 1.0, défaut 20%)
|
||
NEW_RATIO=0.20
|