.env.example 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. # Reccomended to be true, set to false if you are using http
  12. # Note: Some auth providers may not support http requests
  13. ALLOW_SECURE_COOKIES=true
  14. # Hoppscotch App Domain Config
  15. REDIRECT_URL="http://localhost:3000"
  16. WHITELISTED_ORIGINS="http://localhost:3170,http://localhost:3000,http://localhost:3100"
  17. VITE_ALLOWED_AUTH_PROVIDERS=GOOGLE,GITHUB,MICROSOFT,EMAIL
  18. # Google Auth Config
  19. GOOGLE_CLIENT_ID="************************************************"
  20. GOOGLE_CLIENT_SECRET="************************************************"
  21. GOOGLE_CALLBACK_URL="http://localhost:3170/v1/auth/google/callback"
  22. GOOGLE_SCOPE="email,profile"
  23. # Github Auth Config
  24. GITHUB_CLIENT_ID="************************************************"
  25. GITHUB_CLIENT_SECRET="************************************************"
  26. GITHUB_CALLBACK_URL="http://localhost:3170/v1/auth/github/callback"
  27. GITHUB_SCOPE="user:email"
  28. # Microsoft Auth Config
  29. MICROSOFT_CLIENT_ID="************************************************"
  30. MICROSOFT_CLIENT_SECRET="************************************************"
  31. MICROSOFT_CALLBACK_URL="http://localhost:3170/v1/auth/microsoft/callback"
  32. MICROSOFT_SCOPE="user.read"
  33. MICROSOFT_TENANT="common"
  34. # Mailer config
  35. MAILER_SMTP_ENABLE="true"
  36. MAILER_USE_CUSTOM_CONFIGS="false"
  37. MAILER_ADDRESS_FROM='"From Name Here" <from@example.com>'
  38. MAILER_SMTP_URL="smtps://user@domain.com:pass@smtp.domain.com" # used if custom mailer configs is false
  39. # The following are used if custom mailer configs is true
  40. MAILER_SMTP_HOST="smtp.domain.com"
  41. MAILER_SMTP_PORT="587"
  42. MAILER_SMTP_SECURE="true"
  43. MAILER_SMTP_USER="user@domain.com"
  44. MAILER_SMTP_PASSWORD="pass"
  45. MAILER_TLS_REJECT_UNAUTHORIZED="true"
  46. # Rate Limit Config
  47. RATE_LIMIT_TTL=60 # In seconds
  48. RATE_LIMIT_MAX=100 # Max requests per IP
  49. #-----------------------Frontend Config------------------------------#
  50. # Base URLs
  51. VITE_BASE_URL=http://localhost:3000
  52. VITE_SHORTCODE_BASE_URL=http://localhost:3000
  53. VITE_ADMIN_URL=http://localhost:3100
  54. # Backend URLs
  55. VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
  56. VITE_BACKEND_WS_URL=ws://localhost:3170/graphql
  57. VITE_BACKEND_API_URL=http://localhost:3170/v1
  58. # Terms Of Service And Privacy Policy Links (Optional)
  59. VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
  60. VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy
  61. # Set to `true` for subpath based access
  62. ENABLE_SUBPATH_BASED_ACCESS=false