.env file located in the root directory of your installation.
Basic Application Settings
These settings control the core behavior of your Snipe-IT instance.Required Settings
.env
Application environment. Use
production for live sites, local for development.Enable debug mode. Never enable this in production as it exposes sensitive information.
Encryption key for securing sessions and encrypted data. Generate using
php artisan key:generate.The full URL where your Snipe-IT installation is accessible (e.g.,
https://assets.company.com).Default timezone for the application. Use PHP timezone identifiers like
America/New_York.Default locale for the application interface.
Maximum number of results to display per page in listings.
Performance Settings
.env
For production environments with multiple web servers, consider using Redis or Memcached for
CACHE_DRIVER and SESSION_DRIVER.Database Configuration
Snipe-IT uses MySQL/MariaDB for data storage.Basic Database Settings
.env
Database driver. Currently only
mysql is supported.Use a Unix socket instead of TCP. Set to socket path or leave as
null to use TCP.Path to the
mysqldump binary for database backups.SSL Database Connections
For secure connections to cloud databases (AWS RDS, Azure Database, Google Cloud SQL):.env
Enable SSL/TLS encryption for database connections.
Set to
true for cloud databases. Set to false for self-hosted databases with client certificates.Path to the CA certificate bundle. For AWS RDS, download from:
https://truststore.pki.rds.amazonaws.com/global/global-bundle.pemPath to client SSL key (required when
DB_SSL_IS_PAAS=false).Path to client SSL certificate (required when
DB_SSL_IS_PAAS=false).Verify server certificate. Set to
false for self-signed certificates (not recommended for production).Mail Configuration
Snipe-IT sends email notifications for checkouts, check-ins, and other events.SMTP Settings
.env
Mail driver. Use
smtp for most configurations.SMTP server hostname. Examples:
- Gmail:
smtp.gmail.com - Office 365:
smtp.office365.com - AWS SES:
email-smtp.us-west-2.amazonaws.com
SMTP port. Use
587 for TLS, 465 for SSL, or 25 for unencrypted (not recommended).Verify TLS certificates. Set to
false only for development or trusted internal servers.How to embed images in emails. Options:
attachment, base64.Testing Mail Configuration
Test your email settings from Admin > Settings > Alerts using the “Send Test Email” button.File Storage
Configure where uploaded files (logos, images, documents) are stored.Local Storage
.env
Amazon S3 Storage
For cloud storage, configure separate S3 buckets for public and private files:.env
S3-compatible storage providers (MinIO, DigitalOcean Spaces, Wasabi) can be configured using the
*_AWS_ENDPOINT and *_AWS_PATH_STYLE variables.Security Settings
See the Security page for detailed security configuration including:- CSRF protection
- Content Security Policy
- Trusted proxies
- Login throttling
- Session security
Advanced Settings
Image Processing
.env
Image processing library. Options:
gd or imagick (if installed).Logging
.env
Log storage method. Options:
single, daily, slack, syslog, errorlog.Performance Limits
.env
API Settings
.env
How many years before API tokens expire.
Maximum API requests per minute per IP address.
Applying Configuration Changes
After modifying your.env file:
-
Clear the configuration cache:
-
Restart your web server/PHP-FPM:
Next Steps
Security Settings
Configure authentication, 2FA, and security headers
Backups
Set up automated database and file backups
Categories
Organize your assets with categories
Companies
Enable multi-tenant company support
