Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
35 lines (30 loc) · 1.74 KB
/
Copy pathexample.env
File metadata and controls
35 lines (30 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# =============================================================================
# Shopware 6 API Configuration - Example .env
# =============================================================================
#
# Copy this file to .env and adjust the values for your shop. These settings are
# consumed by lib_shopware6_api_base's ConfShopware6ApiBase, which lib_shopware6_api
# builds on, and are loaded through lib_layered_config (merged in increasing
# precedence: bundled defaults -> app -> host -> user -> .env -> environment).
#
# Naming convention:
# - In a .env file, use the SECTION__KEY form (double underscore), no prefix:
# SHOPWARE__ADMIN_API_URL=...
# - As a real environment variable, prefix with the slug:
# LIB_SHOPWARE6_API_BASE___SHOPWARE__ADMIN_API_URL=...
# =============================================================================
# --- API endpoints --------------------------------------------------------
SHOPWARE__ADMIN_API_URL="https://shop.example.com/api"
SHOPWARE__STOREFRONT_API_URL="https://shop.example.com/store-api"
# --- Authentication: user-credentials grant (interactive; refresh tokens) -
# Setup: Admin Panel > Settings > System > Users
SHOPWARE__USERNAME="[email protected]"
SHOPWARE__PASSWORD="your-secure-password-here"
# --- Authentication: resource-owner / integration grant (automation) ------
# Setup: Admin Panel > Settings > System > Integrations
SHOPWARE__CLIENT_ID="SWIAXXXXXXXXXXXXXXXXXXXX"
SHOPWARE__CLIENT_SECRET="your-integration-secret-key-here"
# --- Grant type: USER_CREDENTIALS or RESOURCE_OWNER -----------------------
SHOPWARE__GRANT_TYPE="RESOURCE_OWNER"
# --- Store API access key (sw-access-key from the Sales Channel) ----------
SHOPWARE__STORE_API_SW_ACCESS_KEY="SWSCXXXXXXXXXXXXXXXXXX"