Environment variables
Host Configuration
| Environment Variable | Description | 
|---|---|
FRONT_COMMERCE_PORT | The port of the launched server (default: 4000) | 
FRONT_COMMERCE_ENV | development or production to remove debugging options on the server side (default: development) | 
FRONT_COMMERCE_COOKIE_PASS | A secret to secure the cookies exchanged with the client | 
FRONT_COMMERCE_COOKIE_MAX_AGE_IN_SECONDS | Configure the redis session duration (default: 60 * 60 * 24 -> 1 day) | 
Cache Configuration
| Environment Variable | Description | 
|---|---|
FRONT_COMMERCE_CACHE_API_TOKEN | Token that lets external applications invalidate parts of Front-Commerce cache | 
FRONT_COMMERCE_CART_CACHE_ENABLE | Allows to enable the cart cache | 
FRONT_COMMERCE_CURRENT_CUSTOMER_CACHE_ENABLE | Allows to enable the current customer cache | 
FRONT_COMMERCE_BACKEND_IGNORE_CACHE_REGEX | Regular expression pattern to disable browser caching and image resizing for matching paths | 
FRONT_COMMERCE_CLOUD_REDIS_SESSIONS_HOST | Define the Redis host | 
FRONT_COMMERCE_CLOUD_REDIS_SESSIONS_PORT | Define the Redis port (default: 6379) | 
FRONT_COMMERCE_CLOUD_REDIS_SESSIONS_DB | Define the number of Redis session (default: 2) | 
FRONT_COMMERCE_CLOUD_REDIS_SESSIONS_JOURNEY_DB | Define the number of Redis session for the user journey (default: 3) | 
Image Configuration
| Environment Variable | Description | 
|---|---|
FRONT_COMMERCE_DEV_IMAGE_ERROR_DISABLE | Disables the image resizing errors for malformed requests | 
Account Configuration
| Environment Variable | Description | 
|---|---|
FRONT_COMMERCE_ACCOUNT_ALLOW_COMPANY | Controls whether company account creation is enabled (default: false) | 
FRONT_COMMERCE_ACCOUNT_ALLOW_INDIVIDUAL | Controls whether individual account creation is enabled (default: true) | 
FRONT_COMMERCE_ACCOUNT_ALLOW_COMPANY_DETAILS_EDITION | Controls whether companies can edit their details after account creation (default: true) | 
FRONT_COMMERCE_ACCOUNT_ALLOW_CREATION | Master switch for account creation functionality (default: true) | 
Maintenance Mode
| Environment Variable | Description | 
|---|---|
FRONT_COMMERCE_MAINTENANCE_MODE_AUTHORIZATION_TOKEN | The authorization token required to activate or deactivate maintenance mode (default: "") |