diff --git a/backend/config/config.example.yml b/backend/config/config.example.yml new file mode 100644 index 0000000..f1a17c4 --- /dev/null +++ b/backend/config/config.example.yml @@ -0,0 +1,24 @@ +server: + port: 1313 # The port number your backend server will run on + +database: + uri: "mongodb+srv://:@/" # Replace with your MongoDB Atlas connection string # Get this from your MongoDB Atlas dashboard after creating a cluster and database + +gemini: + apiKey: "" # API key for OpenAI / Gemini model access # Obtain from your OpenRouter.ai or OpenAI account dashboard + +jwt: + secret: "" # A secret string used to sign JWT tokens # Generate a strong random string (e.g. use `openssl rand -hex 32`) + expiry: 1440 # Token expiry time in minutes (e.g. 1440 = 24 hours) + +smtp: + host: "smtp.gmail.com" # SMTP server host for sending emails (example is Gmail SMTP) + port: 587 # SMTP server port (587 for TLS) + username: "" # Email username (your email address) + password: "" # Password for the email or app-specific password if 2FA is enabled + senderEmail: "" # The 'from' email address used when sending mails + senderName: "DebateAI Team" + +googleOAuth: + clientID: "" # Google OAuth Client ID for OAuth login # Obtain from Google Cloud Console (APIs & Services > Credentials > OAuth 2.0 Client IDs) +