.env.example 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #-----------------------Backend Config------------------------------#
  2. # Prisma Config
  3. DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
  4. # Auth Tokens Config
  5. JWT_SECRET="secret1233"
  6. TOKEN_SALT_COMPLEXITY=10
  7. MAGIC_LINK_TOKEN_VALIDITY= 3
  8. REFRESH_TOKEN_VALIDITY="604800000" # Default validity is 7 days (604800000 ms) in ms
  9. ACCESS_TOKEN_VALIDITY="86400000" # Default validity is 1 day (86400000 ms) in ms
  10. SESSION_SECRET='add some secret here'
  11. # Hoppscotch App Domain Config
  12. REDIRECT_URL="http://localhost:3000"
  13. WHITELISTED_ORIGINS="http://localhost:3170,http://localhost:3000,http://localhost:3100"
  14. VITE_ALLOWED_AUTH_PROVIDERS=GOOGLE,GITHUB,MICROSOFT,EMAIL
  15. # Google Auth Config
  16. GOOGLE_CLIENT_ID="************************************************"
  17. GOOGLE_CLIENT_SECRET="************************************************"
  18. GOOGLE_CALLBACK_URL="http://localhost:3170/v1/auth/google/callback"
  19. GOOGLE_SCOPE="email,profile"
  20. # Github Auth Config
  21. GITHUB_CLIENT_ID="************************************************"
  22. GITHUB_CLIENT_SECRET="************************************************"
  23. GITHUB_CALLBACK_URL="http://localhost:3170/v1/auth/github/callback"
  24. GITHUB_SCOPE="user:email"
  25. # Microsoft Auth Config
  26. MICROSOFT_CLIENT_ID="************************************************"
  27. MICROSOFT_CLIENT_SECRET="************************************************"
  28. MICROSOFT_CALLBACK_URL="http://localhost:3170/v1/auth/microsoft/callback"
  29. MICROSOFT_SCOPE="user.read"
  30. MICROSOFT_TENANT="common"
  31. # Mailer config
  32. MAILER_SMTP_URL="smtps://user@domain.com:pass@smtp.domain.com"
  33. MAILER_ADDRESS_FROM='"From Name Here" <from@example.com>'
  34. # Rate Limit Config
  35. RATE_LIMIT_TTL=60 # In seconds
  36. RATE_LIMIT_MAX=100 # Max requests per IP
  37. #-----------------------Frontend Config------------------------------#
  38. # Base URLs
  39. VITE_BASE_URL=http://localhost:3000
  40. VITE_SHORTCODE_BASE_URL=http://localhost:3000
  41. VITE_ADMIN_URL=http://localhost:3100
  42. # Backend URLs
  43. VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
  44. VITE_BACKEND_WS_URL=ws://localhost:3170/graphql
  45. VITE_BACKEND_API_URL=http://localhost:3170/v1
  46. # Terms Of Service And Privacy Policy Links (Optional)
  47. VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
  48. VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy
  49. # Set to `true` for subpath based access
  50. ENABLE_SUBPATH_BASED_ACCESS=false