Environment variables
caution
Due to the way
token based authentication is implemented in Magento2 Web API,
using a URL containing basic authentication credentials (such as
http://user:password@magento2.local
) is not possible yet. It would prevent
users to login.
Environment Variable | Description |
---|---|
FRONT_COMMERCE_MAGENTO2_ENDPOINT | Required The URL of the Magento instance (ex: http://magento2.local ) |
FRONT_COMMERCE_MAGENTO2_CONSUMER_KEY | Required Integration token configured in Magento's System > Extensions > Integrations admin page |
FRONT_COMMERCE_MAGENTO2_CONSUMER_SECRET | Required Integration token configured in Magento's System > Extensions > Integrations admin page |
FRONT_COMMERCE_MAGENTO2_ACCESS_TOKEN | Required Integration token configured in Magento's System > Extensions > Integrations admin page |
FRONT_COMMERCE_MAGENTO2_ACCESS_TOKEN_SECRET | Required Integration token configured in Magento's System > Extensions > Integrations admin page |
FRONT_COMMERCE_MAGENTO2_ADMIN_TOKEN | Admin role token to detect admin users in Front-Commerce configured in « Stores > Configurations > General > General > Front-Commerce > Magento Admin Token » |
FRONT_COMMERCE_MAGENTO2_ADMIN_PATH | The path of the Magento administration interface (default: admin ) |
FRONT_COMMERCE_MAGENTO2_ADMIN_TIMEOUT | The timeout in milliseconds for Magento requests that require admin privileges (default: 10000 ) |
FRONT_COMMERCE_MAGENTO2_ADMIN_REFERALS | The urls of Magento's backoffice to use as referrals (default: [FRONT_COMMERCE_MAGENTO2_ENDPOINT] ) |
FRONT_COMMERCE_MAGENTO2_TIMEOUT | The timeout in milliseconds for Magento requests (default: 60000 ) |
FRONT_COMMERCE_OPTIMIZED_ADD_MULTIPLE_CART_ITEMS | Set to true to use an alternative implementation of the addMultipleItemsToCart mutation that is more performant when adding a high number of products to the cart |
FRONT_COMMERCE_MAGENTO2_SEARCH_TAX_RATE | Tax rate to apply on indexed prices to compute prices including taxes on price facet (default: 1 ) |
MAGENTO2_SCHEMA_PATH | URL to your Magento2 instance's GraphQL endpoint or schema file. Used to regenerate the GraphQL schema types |