.env.example 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # Google Auth Config
  15. GOOGLE_CLIENT_ID="************************************************"
  16. GOOGLE_CLIENT_SECRET="************************************************"
  17. GOOGLE_CALLBACK_URL="http://localhost:3170/v1/auth/google/callback"
  18. GOOGLE_SCOPE="email,profile"
  19. # Github Auth Config
  20. GITHUB_CLIENT_ID="************************************************"
  21. GITHUB_CLIENT_SECRET="************************************************"
  22. GITHUB_CALLBACK_URL="http://localhost:3170/v1/auth/github/callback"
  23. GITHUB_SCOPE="user:email"
  24. # Microsoft Auth Config
  25. MICROSOFT_CLIENT_ID="************************************************"
  26. MICROSOFT_CLIENT_SECRET="************************************************"
  27. MICROSOFT_CALLBACK_URL="http://localhost:3170/v1/auth/microsoft/callback"
  28. MICROSOFT_SCOPE="user.read"
  29. # Mailer config
  30. MAILER_SMTP_URL="smtps://user@domain.com:pass@smtp.domain.com"
  31. MAILER_ADDRESS_FROM='"From Name Here" <from@example.com>'
  32. # Rate Limit Config
  33. RATE_LIMIT_TTL=60 # In seconds
  34. RATE_LIMIT_MAX=100 # Max requests per IP
  35. #-----------------------Frontend Config------------------------------#
  36. # Base URLs
  37. VITE_BASE_URL=http://localhost:3000
  38. VITE_SHORTCODE_BASE_URL=http://localhost:3000
  39. VITE_ADMIN_URL=http://localhost:3100
  40. # Backend URLs
  41. VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
  42. VITE_BACKEND_WS_URL=wss://localhost:3170/graphql
  43. VITE_BACKEND_API_URL=http://localhost:3170/v1
  44. # Terms Of Service And Privacy Policy Links (Optional)
  45. VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
  46. VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy