From 1ee1da1a62dbe43972934da55250f1f8fa150e74 Mon Sep 17 00:00:00 2001 From: Ali Taghavi Date: Sun, 10 May 2026 09:32:58 +0330 Subject: [PATCH] added env example --- .env.example | 25 +++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..83c8c619 --- /dev/null +++ b/.env.example @@ -0,0 +1,25 @@ +# Database — MariaDB 11 +DATABASE_URL="mysql://biztaghavi:password@localhost:3306/biztaghavi" + +# Admin panel — generate with: openssl rand -hex 32 +SESSION_SECRET="change-me-to-a-random-64-char-string" + +# One-time admin user creation key — set then delete after use +SETUP_KEY="change-me-to-a-secret-key" + +# Email (Resend) — optional; messages are saved to DB regardless +RESEND_API_KEY="" +CONTACT_EMAIL="ali@biztaghavi.com" + +# Site +NEXT_PUBLIC_SITE_URL="https://biztaghavi.com" + +# Analytics (Umami) — optional +NEXT_PUBLIC_UMAMI_WEBSITE_ID="" +NEXT_PUBLIC_UMAMI_URL="" + +# Docker DB credentials (used by docker-compose.yml) +DB_ROOT_PASSWORD="change-me" +DB_NAME="biztaghavi" +DB_USER="biztaghavi" +DB_PASSWORD="change-me" diff --git a/.gitignore b/.gitignore index b43744c7..787dd333 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,7 @@ yarn-error.log* .pnpm-debug.log* # env files (can opt-in for committing if needed) -.env* +.env.local # vercel .vercel