summaryrefslogtreecommitdiff
path: root/.env
diff options
context:
space:
mode:
authorertopogo <erwin.t.pombett@gmail.com>2026-01-18 22:25:26 +0100
committerertopogo <erwin.t.pombett@gmail.com>2026-01-18 22:25:26 +0100
commite01100156ffddfb4975e1aa7518744c2f0e3801a (patch)
tree9d890d885535ba427310dc21aef0cdd53584bc08 /.env
parent532e8b5726595500b06e48b47d6cd4e1bbfe3618 (diff)
Refactor environment variables and enhance installation documentation. Updated DATABASE_URL, NEXT_PUBLIC_MEDUSA_BACKEND_URL, ADMIN_CORS, and STORE_CORS to align with the revised internal DNS structure. Included additional guidelines for DNS nomenclature and clarified Git deployment instructions in INSTALLATION.md.
Diffstat (limited to '.env')
-rw-r--r--.env35
1 files changed, 35 insertions, 0 deletions
diff --git a/.env b/.env
new file mode 100644
index 0000000..ebc625e
--- /dev/null
+++ b/.env
@@ -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=
+