Configure Tracktor by setting environment variables in a .env file in the root directory or as system environment variables.
Application environment.
- Values:
dev,production,test - Default:
dev
Hostname or IP address for the server. Set to 0.0.0.0 to listen on all network interfaces.
- Values: Any valid hostname or IP address. Used only on production or build
- Default:
localhost
Port number for the server.
- Values: Any available port number. Used only on production or build
- Default:
3000
Base path for serving the application behind a reverse proxy. When hosting Tracktor under a sub-path (e.g., https://example.com/tracktor/), set this to the sub-path (e.g., /tracktor). This ensures all assets, API calls, and routing work correctly.
- Values: Any valid URL path (must start with
/and not end with/) - Default: `` (empty string, serves from root)
- Example:
/tracktor,/apps/tracktor - Note: Do not include trailing slashes
Path to the SQLite database file.
- Values: Any valid file path
- Default:
./tracktor.db - Docker:
/data/tracktor.db
Directory for uploaded files.
- Values: Any valid directory path
- Default:
./uploads - Docker:
/data/uploads
Allowed origins for Cross-Origin Resource Sharing (CORS). When using Tracktor behind a reverse proxy or with a frontend on a different domain/port, set this to specific origins for security.
- Values: Comma-separated list of origins (e.g.,
http://example.com,https://anotherdomain.com) - Default:
*(allows all origins)
Disable authentication (not recommended for production).
- Values:
true,false - Default:
false
Enable demo mode with sample data.
- Values:
true,false - Default:
false
Force database seeding with demo data on startup overwriting the existing data (requires TRACKTOR_DEMO_MODE=true).
- Values:
true,false - Default:
false
Enable HTTP request logging.
- Values:
true,false - Default:
true
Logging verbosity level.
- Values:
error,warn,info,http,verbose,debug,silly - Default:
info
Directory for log files.
- Values: Any valid directory path
- Default:
./logs
Limits the upload size of image/documents.
- values: Any number (size in bytes)
- Defaut: 512Kb
- Docker: Infinity (removes restriction)
- Environment variables can be set in a
.envfile in the root directory or as system environment variables - Restart the application after changing environment variables for changes to take effect