apps/web/.env.example and should be configured in your apps/web/.env file.
Application Settings
Cryptographically secure key used for encryption and signing. Generate using
node ace generate:key.Application environment. Set to
production for production deployments.Options: development, production, testTimezone for the application. Used for date/time operations.
Logging level for the application.Options:
trace, debug, info, warn, error, fatalServer Configuration
Port number on which the application server will listen.
Hostname for the application server.
Session & Storage
Driver for session storage.Options:
cookie, file, redis, memoryDefault disk for file storage using AdonisJS Drive.Options:
fs (filesystem), s3, gcsDatabase Configuration
PostgreSQL database host address.
PostgreSQL database port.
PostgreSQL database username.
PostgreSQL database password.
PostgreSQL database name.
Email Configuration
Resend (Recommended)
API key for Resend email service. Get your key from resend.com.
Default sender email address for outgoing emails.
SMTP (Alternative)
SMTP server hostname. Use
localhost with Mailpit for local development.SMTP server port. Mailpit uses port
1025 by default.SMTP authentication username.
SMTP authentication password.
Enable TLS/SSL for SMTP connection.Values:
0 (disabled), 1 (enabled)Reject unauthorized SSL certificates.Values:
true, falseSocial Authentication
Google OAuth
Google OAuth client ID. Get from Google Cloud Console.
Google OAuth client secret. Get from Google Cloud Console.
Additional social providers can be configured using the @adonisjs/ally package.
Frontend Configuration
API URL used by the frontend Vite build. This should match your server’s address.
Rate Limiting
Storage backend for rate limiting.Options:
database, redis, memoryEnvironment File Setup
Development
-
Copy the example file:
-
Generate your app key:
- Configure database credentials (if using Docker, defaults should work)
- Configure email provider (Resend or SMTP)
- (Optional) Set up social authentication providers
Production
For production deployments:- Set
NODE_ENV=production - Use strong, randomly generated passwords
- Configure production database credentials
- Set up proper email service (Resend recommended)
- Configure social auth with production OAuth credentials
- Use HTTPS URLs for
VITE_API_URL