Settings that belong to the server, not to the store, live in the .env file at the project root. Start from
.env.example. Everything a merchant configures (store name, logos, languages, taxes, payment credentials, AI keys…)
is set in the administration and stored in the database instead.
.env contains secrets. Never commit it, and never reuse the local development passwords from .env.example in
production.
Application
Variable
Example / default
Meaning
APP_NAME
"Ambresoft Commerce"
Application name (used by Laravel, for example in the email sender name)
APP_ENV
local
local, testing or production. Demo commands refuse to run outside local/testing
APP_KEY
generated
Encryption key for sessions, signed URLs and stored secrets. Generate once; never replace it on an existing store
APP_DEBUG
true
Detailed error pages. Must be false in production
APP_URL
http://localhost:8000
The exact address of the store as typed in the browser (HTTPS in production). Used in emails, signed links and passkeys
APP_LOCALE, APP_FALLBACK_LOCALE
en
Laravel defaults; the store’s languages are managed in Settings → Languages
APP_PORT
8000
Local port for the web application (Docker Compose)
LOG_CHANNEL, LOG_LEVEL
stderr, debug
Where logs go and how detailed they are
Database
Variable
Default
Meaning
DB_CONNECTION
pgsql
PostgreSQL
DB_HOST, DB_PORT
postgres, 5432
Database server
DB_DATABASE, DB_USERNAME, DB_PASSWORD
cms, cms, local-only-cms
The store database and its user (local values)
Sessions, cache and queues (Redis)
Variable
Default
Meaning
SESSION_DRIVER
redis
Sessions stored in Redis
SESSION_LIFETIME
120
Minutes of inactivity before a session expires
SESSION_ENCRYPT
true
Session data is encrypted
SESSION_SECURE_COOKIE
false
Set true in production (HTTPS only)
SESSION_HTTP_ONLY, SESSION_SAME_SITE
true, lax
Cookie protection
SESSION_COOKIE
cms_session
Session cookie name
CACHE_STORE, CACHE_PREFIX
redis, cms_cache_
Application cache
QUEUE_CONNECTION
redis
Background jobs
REDIS_CLIENT
phpredis
Redis client
REDIS_HOST, REDIS_PORT, REDIS_PASSWORD
redis, 6379, null
Redis server
REDIS_DB, REDIS_CACHE_DB
0, 1
Redis databases for sessions/queues and for the cache
REDIS_PREFIX
cms_
Key prefix; use a unique prefix per installation sharing a Redis server
REDIS_QUEUE_RETRY_AFTER
90
Seconds before an unfinished job is retried; keep it above the worker timeout (60)
STOREFRONT_CACHE_STORE
storefront
Cache store used by the storefront content cache
STOREFRONT_REDIS_URL or STOREFRONT_REDIS_HOST, _PORT, _USERNAME, _PASSWORD, _DB
—
Optional dedicated Redis for the storefront content cache
Email
Variable
Default
Meaning
MAIL_MAILER
smtp
Mail transport
MAIL_HOST, MAIL_PORT
mailpit, 1025
SMTP server (locally: Mailpit)
MAIL_USERNAME, MAIL_PASSWORD, MAIL_SCHEME
—
SMTP credentials and scheme for a real mail server
MAIL_FROM_ADDRESS, MAIL_FROM_NAME
hello@cms.test, ${APP_NAME}
Default sender
MAIL_LOCAL_INBOX_URL
http://localhost:8025
Local only: link to the Mailpit inbox shown next to test emails in the administration