Files
balikci/.env.example
salvacybersec 3f89ed2158 env
2025-11-11 05:16:12 +03:00

82 lines
5.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ═══════════════════════════════════════════════════════════════
# Oltalama Phishing Test Panel - Environment Variables
# ═══════════════════════════════════════════════════════════════
# ────────────────────────────────────────────────────────────────
# 🔐 SESSION SECRET (ZORUNLU)
# ────────────────────────────────────────────────────────────────
# Docker: Boş bırakılırsa otomatik oluşturulur ve .env'e kaydedilir
# Manual: Güçlü bir random string kullanın
# Oluşturmak için: openssl rand -hex 64
SESSION_SECRET=
# ────────────────────────────────────────────────────────────────
# 📧 GMAIL AYARLARI (ZORUNLU)
# ────────────────────────────────────────────────────────────────
# Gmail App Password almak için:
# 1. Google Account → Security → 2-Step Verification (aktif et)
# 2. App Passwords → Mail → Generate
# 3. 16 haneli şifreyi buraya yapıştır
GMAIL_USER=your-email@gmail.com
GMAIL_APP_PASSWORD=your-gmail-app-password
# ────────────────────────────────────────────────────────────────
# 📱 TELEGRAM AYARLARI (ZORUNLU)
# ────────────────────────────────────────────────────────────────
# Bot oluşturmak için:
# 1. @BotFather ile konuş
# 2. /newbot komutunu kullan
# 3. Token'ı al
# Chat ID almak için:
# 1. Bot'a mesaj gönder
# 2. https://api.telegram.org/bot<TOKEN>/getUpdates
# 3. "chat":{"id": XXXXXX } değerini al
TELEGRAM_BOT_TOKEN=your-bot-token
TELEGRAM_CHAT_ID=your-chat-id
# ────────────────────────────────────────────────────────────────
# 🤖 OLLAMA AI AYARLARI (Opsiyonel)
# ────────────────────────────────────────────────────────────────
# Local Ollama: http://localhost:11434
# Docker: http://host.docker.internal:11434
# Remote: http://your-server:11434
OLLAMA_SERVER_URL=http://host.docker.internal:11434
OLLAMA_MODEL=llama3.2:latest
# ────────────────────────────────────────────────────────────────
# 🌐 DOMAIN AYARLARI (Production için)
# ────────────────────────────────────────────────────────────────
# Backend API domain (CORS için gerekli)
DOMAIN_URL=https://api.example.com
# Frontend panel domain (CORS için gerekli)
FRONTEND_URL=https://panel.example.com
# ────────────────────────────────────────────────────────────────
# 🔧 BACKEND AYARLARI
# ────────────────────────────────────────────────────────────────
NODE_ENV=production
PORT=3000
# ────────────────────────────────────────────────────────────────
# 🗄️ DATABASE (Otomatik oluşturulur, değiştirme!)
# ────────────────────────────────────────────────────────────────
# SQLite database dosyası: backend/database/oltalama.db
# Docker: Container volume'de saklanır
# ────────────────────────────────────────────────────────────────
# 🌱 AUTO SEED (İlk kurulum için opsiyonel)
# ────────────────────────────────────────────────────────────────
# true: Örnek şirket, admin (admin/admin123) otomatik oluşturulur
# false: Manuel admin oluşturmalısınız
AUTO_SEED=false
# ────────────────────────────────────────────────────────────────
# 📝 NOTLAR
# ────────────────────────────────────────────────────────────────
# - Bu dosyayı .env olarak kopyalayın ve değerleri doldurun
# - .env dosyasını ASLA git'e commit ETMEYİN (.gitignore'da)
# - SESSION_SECRET'i güçlü tutun (min 64 karakter)
# - Gmail'de 2FA aktif olmalı ve App Password kullanılmalı
# - Production'da HTTPS kullanın (Let's Encrypt ücretsiz)