Skip to main content
Usertour uses environment variables to configure various application parameters. Here’s a detailed explanation of the environment variables:

Important Notes

  • For local development, APP_HOMEPAGE_URL can be set to http://[ip]:[port]
  • For production environments, make sure to modify the default security-related configurations (such as JWT secrets)
  • DATABASE_URL includes the database connection parameters with SSL mode preference
  • Both DATABASE_URL and DATABASE_DIRECT_URL must be configured, regardless of whether you’re using connection poolers or not
  • When using connection poolers (like PgBouncer) in production, make sure to:
    • Configure DATABASE_URL to use the connection pooler
    • Set DATABASE_DIRECT_URL to point directly to your PostgreSQL database
    • Ensure both URLs have proper SSL configuration for production use
  • The DATABASE_DIRECT_URL is essential for Prisma CLI operations and should always be configured when using connection poolers
  • Email service configuration is required for user registration and member invitation features. Without proper email configuration, these features will not be available

Configuration Example (.env)

Create a .env file in the project root directory. You can refer to the following example:
Note: Do not use these example values directly. Configure them according to your actual environment. Make sure to use secure keys and passwords in production environments.