diff options
| author | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
|---|---|---|
| committer | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
| commit | 09a949092c59856962e4a7d132bc5a5e76fe5e55 (patch) | |
| tree | 990d6b8f24ff9c6dbc0fcb15b5512067d09b17fd /env-example | |
Initial commit: Medusa Backend + storefront + config
Diffstat (limited to 'env-example')
| -rw-r--r-- | env-example | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/env-example b/env-example new file mode 100644 index 0000000..bed7b21 --- /dev/null +++ b/env-example @@ -0,0 +1,35 @@ +# --------------------------------------------------------
+# CONFIGURATION DE LA BASE DE DONNEES
+# Remplacez <user>, <password>, <host> par vos vraies infos
+# Si Postgres est sur la machine hôte et pas dans Docker, utilisez l'IP locale ou host.docker.internal
+# --------------------------------------------------------
+DATABASE_URL=postgres://postgres:password@host.docker.internal:5432/medusa_db
+
+# --------------------------------------------------------
+# CLES DE SECURITE
+# Générez des clés aléatoires complexes pour la production
+# --------------------------------------------------------
+JWT_SECRET=supersecret
+COOKIE_SECRET=supersecret
+
+# --------------------------------------------------------
+# CONFIGURATION DES URLS
+# Pour la production, mettez vos vrais domaines (ex: https://api.monsite.com)
+# --------------------------------------------------------
+
+# URL du Backend (API) accessible par le navigateur
+NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://localhost:9000
+
+# CORS Admin : Quels domaines peuvent accéder à l'admin ?
+ADMIN_CORS=http://localhost:7000,http://localhost:7001
+
+# CORS Store : Quels domaines (le frontend) peuvent accéder à l'API ?
+# En production, ce sera https://monsite.com
+STORE_CORS=http://localhost:8000
+
+# --------------------------------------------------------
+# PAIEMENTS (Optionnel)
+# --------------------------------------------------------
+STRIPE_API_KEY=
+STRIPE_WEBHOOK_SECRET=
+
|
