36 lines
1.4 KiB
Bash
36 lines
1.4 KiB
Bash
# Server
|
|
PORT=3000
|
|
SESSION_SECRET=change_this_to_a_long_random_string
|
|
APP_BASE_URL=http://localhost:3000
|
|
|
|
# Admin seeding (created on first boot if not present)
|
|
ADMIN_EMAIL=admin@example.com
|
|
ADMIN_PASSWORD=admin123
|
|
|
|
# Google OAuth 2.0
|
|
# 1) In Google Cloud Console create OAuth Client ID (Web application)
|
|
# 2) Add Authorized redirect URI: http://localhost:3000/auth/google/callback
|
|
# 3) Paste the credentials below
|
|
GOOGLE_CLIENT_ID=your_google_oauth_client_id
|
|
GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret
|
|
GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/callback
|
|
|
|
# Notes:
|
|
# - The Google login button appears only when GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set.
|
|
# - If you change PORT, also update GOOGLE_CALLBACK_URL and the redirect URI in Google Cloud.
|
|
|
|
# SMTP (for email verification)
|
|
# If not set, verification links will be printed to the server console instead of sending emails.
|
|
# Typical values for a provider:
|
|
# SMTP_HOST=smtp.yourprovider.com
|
|
# SMTP_PORT=587
|
|
# SMTP_USER=your_username
|
|
# SMTP_PASS=your_password
|
|
# SMTP_SECURE=false
|
|
# SMTP_FROM="Support <no-reply@yourdomain.com>"
|
|
|
|
# Discord webhook (alternative delivery for verification links)
|
|
# If SMTP is not configured but DISCORD_WEBHOOK_URL is set, verification links
|
|
# will be sent to that Discord channel via webhook instead of console logging.
|
|
# Create a webhook in your Discord channel and paste the URL here.
|
|
# DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxxxx/xxxxxxxxxxxxxxxx |