File size: 2,815 Bytes
c605dd5
 
 
 
 
 
 
 
 
 
 
 
430f98c
c605dd5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430f98c
c605dd5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ══════════════════════════════════════════════════════════════════════════════
# DEDALYS BACKEND — Variables d'environnement
# Copier ce fichier vers .env et remplir les valeurs
# ══════════════════════════════════════════════════════════════════════════════

# ── Supabase ─────────────────────────────────────────────────────────────────
SUPABASE_URL=https://xxxxxxxxxxxx.supabase.co
SUPABASE_ANON_KEY=eyJ...                    # Dashboard → Settings → API → anon public
SUPABASE_SERVICE_KEY=eyJ...                 # Dashboard → Settings → API → service_role ⚠️ SECRET
SUPABASE_JWT_SECRET=your-jwt-secret         # Dashboard → Settings → API → JWT Secret

# ── Storage ──────────────────────────────────────────────────────────────────
STORAGE_BUCKET=dedalys-fichiers
STORAGE_SIGNED_URL_EXPIRY=900               # Durée signed URLs en secondes (15 min)

# ── Email (Resend) ───────────────────────────────────────────────────────────
RESEND_API_KEY=re_...                       # https://resend.com/api-keys
EMAIL_FROM=noreply@dedalys.ci

# ── Application ──────────────────────────────────────────────────────────────
APP_ENV=development                         # development | staging | production
FRONTEND_URL=http://localhost:3000

# ── CORS ─────────────────────────────────────────────────────────────────────
# Liste des origines autorisées, séparées par des virgules
# development : http://localhost:3000
# staging     : https://staging.dedalys.ci
# production  : https://app.dedalys.ci
ALLOWED_ORIGINS=http://localhost:3000

# ── Reset Password ───────────────────────────────────────────────────────────
SUPABASE_RESET_PASSWORD_REDIRECT_URL=http://localhost:3000/reset-password