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_REDIS_HOST | Define the Redis host for caching |
FRONT_COMMERCE_REDIS_PORT | Define the Redis port for caching (default: 6379) |
FRONT_COMMERCE_REDIS_DB | Define the Redis database for caching (default: 1) |
FRONT_COMMERCE_REDIS_PASSWORD | Redis password for caching and server events (optional) |
FRONT_COMMERCE_SERVER_EVENT_REDIS_HOST | Define the Redis host for server events |
FRONT_COMMERCE_SERVER_EVENT_REDIS_PORT | Define the Redis port for server events (default: 6379) |
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: "") |