- Add GoogleOAuthProvider wrapper in layout.tsx - Add Google login button to LoginForm with "or continue with email" separator - Add Google signup button to RegisterForm - Add Google auth types and API client integration - Add GOOGLE_CLIENT_ID and NEXT_PUBLIC_GOOGLE_CLIENT_ID to env config - Add translations (EN/FR) for Google OAuth UI - Backend already has /api/v1/auth/google endpoint, no changes needed Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
99 lines
2.4 KiB
Plaintext
99 lines
2.4 KiB
Plaintext
# ============================================
|
|
# Wordly.art - .env de production
|
|
# ============================================
|
|
# Copier ce fichier en .env sur le serveur
|
|
# cp .env.production .env
|
|
# Puis remplacer les valeurs [A CHANGER]
|
|
# ============================================
|
|
|
|
# ---- Application ----
|
|
APP_NAME=Wordly
|
|
APP_ENV=production
|
|
DEBUG=false
|
|
LOG_LEVEL=INFO
|
|
|
|
# ---- Domaine ----
|
|
DOMAIN=wordly.art
|
|
NEXT_PUBLIC_API_URL=https://wordly.art
|
|
BACKEND_PORT=8000
|
|
FRONTEND_PORT=3000
|
|
|
|
# ---- Service de traduction par defaut ----
|
|
# Choisir: google, ollama, deepseek, minimax, deepl, openai, openrouter
|
|
TRANSLATION_SERVICE=google
|
|
|
|
# ---- Google (gratuit, toujours actif) ----
|
|
GOOGLE_TRANSLATE_ENABLED=true
|
|
|
|
# ---- Google OAuth (connexion avec Google) ----
|
|
GOOGLE_CLIENT_ID=
|
|
NEXT_PUBLIC_GOOGLE_CLIENT_ID=
|
|
|
|
# ---- Ollama (local, gratuit) ----
|
|
OLLAMA_ENABLED=false
|
|
OLLAMA_BASE_URL=http://ollama:11434
|
|
OLLAMA_MODEL=llama3
|
|
|
|
# ---- DeepSeek ----
|
|
DEEPSEEK_ENABLED=false
|
|
DEEPSEEK_API_KEY=
|
|
DEEPSEEK_MODEL=deepseek-chat
|
|
DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
|
|
|
|
# ---- Minimax ----
|
|
MINIMAX_ENABLED=false
|
|
MINIMAX_API_KEY=
|
|
MINIMAX_MODEL=MiniMax-M1
|
|
MINIMAX_BASE_URL=https://api.minimax.chat/v1
|
|
|
|
# ---- DeepL ----
|
|
DEEPL_ENABLED=false
|
|
DEEPL_API_KEY=
|
|
|
|
# ---- OpenAI ----
|
|
OPENAI_ENABLED=false
|
|
OPENAI_API_KEY=
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
|
|
|
# ---- OpenRouter ----
|
|
OPENROUTER_ENABLED=false
|
|
OPENROUTER_API_KEY=
|
|
OPENROUTER_MODEL=deepseek/deepseek-chat
|
|
|
|
# ---- Upload ----
|
|
MAX_FILE_SIZE_MB=50
|
|
ALLOWED_EXTENSIONS=.docx,.xlsx,.pptx
|
|
|
|
# ---- Rate Limiting ----
|
|
RATE_LIMIT_ENABLED=true
|
|
RATE_LIMIT_REQUESTS_PER_MINUTE=60
|
|
RATE_LIMIT_TRANSLATIONS_PER_MINUTE=10
|
|
RATE_LIMIT_TRANSLATIONS_PER_HOUR=100
|
|
RATE_LIMIT_TRANSLATIONS_PER_DAY=500
|
|
|
|
# ---- Admin ----
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD_HASH=CHANGE_WITH_BCRYPT_HASH
|
|
|
|
# ---- Secrets (deja generes) ----
|
|
JWT_SECRET_KEY=84-MniOv3rOZZ3FczwDvsNNHqZRf8yKI06uMNQGAgMSV8yAJ19comNe6FHHcnVyeNm-fvDxlcb9CWe40y4oy7A
|
|
ADMIN_TOKEN_SECRET=1301880be1bc8026676d7f4fb13ae1c70fcd2abbd2f2cdfcb044eea5c7005ce3
|
|
CORS_ORIGINS=https://wordly.art
|
|
|
|
# ---- Database ----
|
|
POSTGRES_USER=translate
|
|
POSTGRES_PASSWORD=yLLgkEvt6mvzGDdoqtQvI1vEgMmR-W75ZTPW5StaIAU
|
|
POSTGRES_DB=translate_db
|
|
|
|
# ---- Monitoring ----
|
|
GRAFANA_USER=admin
|
|
GRAFANA_PASSWORD=WordlyGrafana2026!
|
|
|
|
# ---- Stripe ----
|
|
STRIPE_SECRET_KEY=
|
|
STRIPE_WEBHOOK_SECRET=
|
|
STRIPE_STARTER_PRICE_ID=
|
|
STRIPE_PRO_PRICE_ID=
|
|
STRIPE_BUSINESS_PRICE_ID=
|