-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
132 lines (105 loc) · 4.12 KB
/
env.example
File metadata and controls
132 lines (105 loc) · 4.12 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# ============================================
# ASuite - Configuration Environnement
# ============================================
# Copiez ce fichier vers .env et modifiez les valeurs selon votre environnement
# cp env.example .env
# ============================================
# BASE DE DONNÉES
# ============================================
# SQLite (Développement - Recommandé pour commencer)
# Aucune installation requise, fichier local créé automatiquement
DATABASE_URL="file:./dev.db"
# PostgreSQL (Production)
# DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public"
# Exemple: DATABASE_URL="postgresql://asuite:motdepasse@localhost:5432/asuite?schema=public"
# MySQL / MariaDB (Production alternative)
# DATABASE_URL="mysql://USER:PASSWORD@HOST:PORT/DATABASE"
# Exemple: DATABASE_URL="mysql://asuite:motdepasse@localhost:3306/asuite"
# ============================================
# AUTHENTIFICATION
# ============================================
# Clé secrète pour signer les sessions et tokens JWT
# IMPORTANT: Changez cette valeur en production !
# Générez une clé sécurisée avec: openssl rand -base64 32
NEXTAUTH_SECRET="asuite-dev-secret-changez-moi-en-production"
# URL de base pour NextAuth (doit correspondre à APP_URL)
NEXTAUTH_URL="http://localhost:3000"
# ============================================
# URLs DE L'APPLICATION
# ============================================
# URL du backend (API) - utilisée par le serveur
APP_URL="http://localhost:3000"
# URL du frontend - utilisée par le navigateur (doit être préfixée NEXT_PUBLIC_)
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Exemples pour la production:
# APP_URL="https://asuite.votredomaine.com"
# NEXT_PUBLIC_APP_URL="https://asuite.votredomaine.com"
# ============================================
# ENVIRONNEMENT
# ============================================
# Mode de l'application: development | production | test
NODE_ENV="development"
# ============================================
# OAUTH (Optionnel - Connexion sociale)
# ============================================
# Google OAuth
# Créez vos identifiants sur: https://console.cloud.google.com/apis/credentials
# GOOGLE_CLIENT_ID=""
# GOOGLE_CLIENT_SECRET=""
# GitHub OAuth
# Créez vos identifiants sur: https://github.com/settings/developers
# GITHUB_CLIENT_ID=""
# GITHUB_CLIENT_SECRET=""
# Microsoft OAuth
# Créez vos identifiants sur: https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps
# MICROSOFT_CLIENT_ID=""
# MICROSOFT_CLIENT_SECRET=""
# ============================================
# EMAIL (Optionnel - Pour vérification et notifications)
# ============================================
# Serveur SMTP
# SMTP_HOST="smtp.example.com"
# SMTP_PORT="587"
# SMTP_USER="votre-email@example.com"
# SMTP_PASSWORD="votre-mot-de-passe"
# SMTP_FROM="ASuite <noreply@votredomaine.com>"
# ============================================
# STOCKAGE (Optionnel - Pour ADrive et ATransfer)
# ============================================
# Stockage local (par défaut)
# STORAGE_TYPE="local"
# STORAGE_PATH="./uploads"
# Amazon S3
# STORAGE_TYPE="s3"
# S3_BUCKET=""
# S3_REGION=""
# S3_ACCESS_KEY=""
# S3_SECRET_KEY=""
# ============================================
# LIMITES (Optionnel)
# ============================================
# Taille max des fichiers uploadés (en bytes)
# MAX_FILE_SIZE="52428800" # 50 Mo
# Nombre max de liens par utilisateur gratuit
# MAX_FREE_LINKS="50"
# ============================================
# CONFIGURATION RAPIDE
# ============================================
#
# Développement (copier tel quel):
# --------------------------------
# DATABASE_URL="file:./dev.db"
# NEXTAUTH_SECRET="dev-secret-key"
# NEXTAUTH_URL="http://localhost:3000"
# APP_URL="http://localhost:3000"
# NEXT_PUBLIC_APP_URL="http://localhost:3000"
# NODE_ENV="development"
#
# Production (à personnaliser):
# -----------------------------
# DATABASE_URL="postgresql://user:pass@host:5432/asuite"
# NEXTAUTH_SECRET="VOTRE_CLE_SECRETE_GENEREE"
# NEXTAUTH_URL="https://votredomaine.com"
# APP_URL="https://votredomaine.com"
# NEXT_PUBLIC_APP_URL="https://votredomaine.com"
# NODE_ENV="production"