Shopware.yaml Konfigurationsmöglichkeiten
Die shopware.yaml
findest du unter <shopRoot>/config/packages
.
Hier kann Shopware auf der low-level Ebene konfiguriert werden.
In folgendem alle möglichen Konfigurationsmöglichkeiten:
parameters:
default_cdn_strategy: "id"
env(APP_URL): ""
APP_URL: "%env(string:APP_URL)%"
shopware:
filesystem:
private:
type: "local"
config:
root: "%kernel.project_dir%/files"
public:
type: "local"
config:
root: "%kernel.project_dir%/public"
temp:
type: "local"
config:
root: "%kernel.project_dir%/var"
theme:
asset:
sitemap:
allowed_extensions:
[
"jpg",
"jpeg",
"png",
"webp",
"gif",
"svg",
"bmp",
"tiff",
"tif",
"eps",
"webm",
"mkv",
"flv",
"ogv",
"ogg",
"mov",
"mp4",
"avi",
"wmv",
"pdf",
"aac",
"mp3",
"wav",
"flac",
"oga",
"wma",
"txt",
"doc",
"ico",
]
cdn:
url: ""
strategy: "%env(string:default:default_cdn_strategy:SHOPWARE_CDN_STRATEGY_DEFAULT)%"
increment:
user_activity:
type: "mysql"
# type: 'array'
# type: 'redis'
# config:
# url: 'redis://localhost'
message_queue:
type: "mysql"
# type: 'array'
# type: 'redis'
# config:
# url: 'redis://localhost'
api:
max_limit: 100
api_browser:
auth_required: true
store:
context_lifetime: "P1D" # 1 day interval, see also https://www.php.net/manual/en/dateinterval.construct.php#refsect1-dateinterval.construct-parameters
rate_limiter:
login:
enabled: true
policy: "time_backoff"
reset: "24 hours" # reset limit after this time if no more requests failed
limits:
- limit: 10
interval: "10 seconds"
- limit: 15
interval: "30 seconds"
- limit: 20
interval: "60 seconds"
guest_login:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 10
interval: "10 seconds"
- limit: 15
interval: "30 seconds"
- limit: 20
interval: "60 seconds"
oauth:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 10
interval: "10 seconds"
- limit: 15
interval: "30 seconds"
- limit: 20
interval: "60 seconds"
reset_password:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 3
interval: "30 seconds"
- limit: 5
interval: "60 seconds"
- limit: 10
interval: "90 seconds"
user_recovery:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 3
interval: "30 seconds"
- limit: 5
interval: "60 seconds"
- limit: 10
interval: "90 seconds"
contact_form:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 3
interval: "30 seconds"
- limit: 5
interval: "60 seconds"
- limit: 10
interval: "90 seconds"
notification:
enabled: true
policy: "time_backoff"
reset: "24 hours"
limits:
- limit: 10
interval: "10 seconds"
- limit: 15
interval: "30 seconds"
- limit: 20
interval: "60 seconds"
admin_worker:
enable_admin_worker: true
# This has to be lower than PHP's max_execution_time (default: 30s)
poll_interval: 20
transports: ["default"]
auto_update:
enabled: true
store:
frw: false
sitemap:
batchsize: 100
custom_urls:
excluded_urls:
deployment:
blue_green: "%env(bool:default:defaults_bool_true:BLUE_GREEN_DEPLOYMENT)%"
media:
enable_url_upload_feature: true
enable_url_validation: true
dal:
batch_size: 125
versioning:
expire_days: 30
cart:
expire_days: 120
sales_channel_context:
expire_days: 120
html_sanitizer:
cache_dir: "%kernel.cache_dir%"
cache_enabled: true
sets:
- name: basic
tags:
[
"a",
"abbr",
"acronym",
"address",
"b",
"bdo",
"big",
"blockquote",
"br",
"caption",
"center",
"cite",
"code",
"col",
"colgroup",
"dd",
"del",
"dfn",
"dir",
"div",
"dl",
"dt",
"em",
"font",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"hr",
"i",
"ins",
"kbd",
"li",
"menu",
"ol",
"p",
"pre",
"q",
"s",
"samp",
"small",
"span",
"strike",
"strong",
"sub",
"sup",
"table",
"tbody",
"td",
"tfoot",
"th",
"thead",
"tr",
"tt",
"u",
"ul",
"var",
]
attributes:
[
"align",
"bgcolor",
"border",
"cellpadding",
"cellspacing",
"cite",
"class",
"clear",
"color",
"colspan",
"dir",
"face",
"frame",
"height",
"href",
"id",
"lang",
"name",
"noshade",
"nowrap",
"rel",
"rev",
"rowspan",
"scope",
"size",
"span",
"start",
"style",
"summary",
"title",
"type",
"valign",
"value",
"width",
]
- name: media
tags: ["img"]
attributes: ["src", "alt"]
- name: script
tags: ["script"]
options:
- key: HTML.Trusted
value: true
- name: tidy
options:
- key: Output.TidyFormat
value: true
fields:
- name: product_translation.description
sets: ["basic", "media"]
- name: app_cms_block.template
sets: ["basic", "media", "tidy"]
logger:
file_rotation_count: 14
exclude_exception:
- League\OAuth2\Server\Exception\OAuthServerException
cache:
invalidation:
delay: 0
count: 150
http_cache: ["logged-in", "cart-filled"]
product_listing_route: []
product_detail_route: []
product_review_route: []
product_search_route: []
product_suggest_route: []
product_cross_selling_route: []
payment_method_route: []
shipping_method_route: []
navigation_route: []
category_route: []
landing_page_route: []
language_route: []
currency_route: []
country_route: []
salutation_route: []
sitemap_route: []