.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
string
default:"production"
Application environment. Use
production for live sites, local for development.boolean
default:"false"
Enable debug mode. Never enable this in production as it exposes sensitive information.
string
required
Encryption key for securing sessions and encrypted data. Generate using
php artisan key:generate.string
required
The full URL where your Snipe-IT installation is accessible (e.g.,
https://assets.company.com).string
default:"UTC"
Default timezone for the application. Use PHP timezone identifiers like
America/New_York.string
default:"en-US"
Default locale for the application interface.
integer
default:"500"
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
string
default:"mysql"
Database driver. Currently only
mysql is supported.string
default:"null"
Use a Unix socket instead of TCP. Set to socket path or leave as
null to use TCP.string
default:"/usr/bin"
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
boolean
default:"false"
Enable SSL/TLS encryption for database connections.
boolean
default:"false"
Set to
true for cloud databases. Set to false for self-hosted databases with client certificates.string
Path to the CA certificate bundle. For AWS RDS, download from:
https://truststore.pki.rds.amazonaws.com/global/global-bundle.pemstring
Path to client SSL key (required when
DB_SSL_IS_PAAS=false).string
Path to client SSL certificate (required when
DB_SSL_IS_PAAS=false).boolean
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
string
default:"smtp"
Mail driver. Use
smtp for most configurations.string
required
SMTP server hostname. Examples:
- Gmail:
smtp.gmail.com - Office 365:
smtp.office365.com - AWS SES:
email-smtp.us-west-2.amazonaws.com
integer
default:"587"
SMTP port. Use
587 for TLS, 465 for SSL, or 25 for unencrypted (not recommended).boolean
default:"true"
Verify TLS certificates. Set to
false only for development or trusted internal servers.string
default:"attachment"
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
string
default:"gd"
Image processing library. Options:
gd or imagick (if installed).Logging
.env
string
default:"single"
Log storage method. Options:
single, daily, slack, syslog, errorlog.Performance Limits
.env
API Settings
.env
integer
default:"15"
How many years before API tokens expire.
integer
default:"120"
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
