Skip to content

Commit

Permalink
feat: reduce default configuration files amount
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 1, 2024
1 parent 0586670 commit 6b1b3e7
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 109 deletions.
5 changes: 5 additions & 0 deletions nyholm/psr7/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"conflict": {
"php-http/discovery": ">=1.18"
}
}
9 changes: 0 additions & 9 deletions shopware/core/6.6/config/packages/shopware.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions shopware/elasticsearch/6.6/config/packages/elasticsearch.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions shopware/fastly-meta/6.6/config/packages/fastly.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions shopware/fastly-meta/6.6/config/packages/prod/fastly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/shopware/shopware/trunk/config-schema.json

shopware:
http_cache:
# Uncomment all to enable soft purge
# Allow to serve the out-dated cache for 300 seconds
# stale_while_revalidate: 300
# Allow to serve the out-dated cache for an hour if the origin server is offline
# stale_if_error: 3600
reverse_proxy:
enabled: true
fastly:
enabled: true
api_key: '%env(FASTLY_API_TOKEN)%'
service_id: '%env(FASTLY_SERVICE_ID)%'
soft_purge: '1'
9 changes: 6 additions & 3 deletions shopware/k8s-meta/1.0/config/packages/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ parameters:
env(K8S_FILESYSTEM_ENDPOINT): ""
# does not work yet, we need a factory or compiler pass for this
# env(K8S_CACHE_TYPE): "cache.adapter.redis_tag_aware"
env(K8S_CACHE_HOST): "localhost"
env(K8S_CACHE_PORT): "6379"
env(K8S_CACHE_INDEX): ""
env(K8S_CACHE_HOST): "localhost"
env(K8S_CACHE_PORT): "6379"
env(K8S_CACHE_INDEX): ""

shopware:
api:
jwt_key:
Expand Down Expand Up @@ -57,10 +58,12 @@ shopware:
root: '%kernel.project_dir%/public'
cdn:
url: "%env(K8S_FILESYSTEM_PUBLIC_URL)%"

elasticsearch:
index_settings:
number_of_replicas: null
number_of_shards: null

framework:
cache:
app: cache.adapter.redis_tag_aware
Expand Down
1 change: 1 addition & 0 deletions shopware/k8s-meta/1.0/config/packages/trusted_env.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
env(TRUSTED_PROXIES): ''

framework:
trusted_proxies: '%env(TRUSTED_PROXIES)%'
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']
5 changes: 5 additions & 0 deletions symfony/debug-bundle/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"bundles": {
"Symfony\\Bundle\\DebugBundle\\DebugBundle": ["dev"]
}
}
20 changes: 20 additions & 0 deletions symfony/mailer/4.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"#1": "MAILER_DSN=null://null"
},
"docker-compose": {
"docker-compose.override.yml": {
"services": [
"mailer:",
" image: axllent/mailpit",
" ports:",
" - \"1025\"",
" - \"8025\"",
" environment:",
" MP_SMTP_AUTH_ACCEPT_ANY: 1",
" MP_SMTP_AUTH_ALLOW_INSECURE: 1"
]
}
},
"aliases": ["mailer", "mail"]
}
22 changes: 0 additions & 22 deletions symfony/messenger/6.0/config/packages/messenger.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions symfony/monolog-bundle/3.3/config/packages/dev/monolog.yaml

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions symfony/monolog-bundle/3.3/config/packages/prod/monolog.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions symfony/monolog-bundle/3.3/config/packages/test/monolog.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions symfony/validator/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"aliases": ["validation"],
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

0 comments on commit 6b1b3e7

Please sign in to comment.