-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
roadiz-ci
committed
Dec 6, 2024
1 parent
1a6d324
commit 36f0d7b
Showing
658 changed files
with
8,108 additions
and
12,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,78 @@ | ||
parameters: | ||
env(HTTP_CACHE_STALE_WHILE_REVALIDATE): 3600 | ||
env(HTTP_CACHE_MAX_AGE): 60 | ||
env(HTTP_CACHE_SHARED_MAX_AGE): 600 | ||
|
||
api_platform: | ||
patch_formats: | ||
json: ['application/merge-patch+json'] | ||
enable_swagger_ui: false | ||
title: "%env(string:APP_TITLE)%" | ||
description: "%env(string:APP_DESCRIPTION)%" | ||
version: '%env(string:APP_VERSION)%' | ||
enable_swagger_ui: true | ||
enable_re_doc: true | ||
# Symfony inflector wrongly pluralizes "nodes_sources" to "nodes_sourcess" | ||
keep_legacy_inflector: true | ||
use_symfony_listeners: true | ||
formats: | ||
jsonld: ['application/ld+json'] | ||
json: ['application/json'] | ||
x-www-form-urlencoded: ['application/x-www-form-urlencoded'] | ||
docs_formats: | ||
jsonld: ['application/ld+json'] | ||
jsonopenapi: ['application/vnd.openapi+json'] | ||
html: ['text/html'] | ||
patch_formats: | ||
json: [ 'application/merge-patch+json' ] | ||
graphql: | ||
introspection: '%kernel.debug%' | ||
graphiql: | ||
enabled: false | ||
graphql_playground: | ||
enabled: false | ||
show_webby: false | ||
swagger: | ||
versions: [3] | ||
title: "%env(string:APP_TITLE)%" | ||
description: "%env(string:APP_DESCRIPTION)%" | ||
version: '%env(string:APP_VERSION)%' | ||
mapping: | ||
paths: | ||
- '%kernel.project_dir%/src/Entity' | ||
- '%kernel.project_dir%/src/GeneratedEntity' | ||
- '%kernel.project_dir%/vendor/roadiz/core-bundle/src/Entity' | ||
- '%kernel.project_dir%/vendor/rezozero/tree-walker/src' | ||
- '%kernel.project_dir%/config/api_resources' | ||
|
||
collection: | ||
pagination: | ||
page_parameter_name: page | ||
items_per_page_parameter_name: itemsPerPage | ||
|
||
http_cache: | ||
invalidation: | ||
enabled: true | ||
varnish_urls: [ '%env(VARNISH_URL)%' ] | ||
|
||
swagger: | ||
versions: [3] | ||
defaults: | ||
stateless: true | ||
extra_properties: | ||
standard_put: true | ||
rfc_7807_compliant_errors: false | ||
enable_max_depth: true | ||
normalization_context: | ||
skip_null_values: true | ||
pagination_client_items_per_page: true | ||
pagination_items_per_page: 15 | ||
pagination_maximum_items_per_page: 50 | ||
cache_headers: | ||
# Automatically generate etags for API responses. | ||
etag: true | ||
public: true | ||
# Default value for the response max age. | ||
max_age: '%env(int:HTTP_CACHE_MAX_AGE)%' | ||
# Default value for the response shared (proxy) max age. | ||
shared_max_age: '%env(int:HTTP_CACHE_SHARED_MAX_AGE)%' | ||
vary: [ 'Accept', 'Authorization', 'Origin', 'Accept-Encoding', 'Content-Type' ] | ||
stale_while_revalidate: '%env(int:HTTP_CACHE_STALE_WHILE_REVALIDATE)%' | ||
# Default values of the "Vary" HTTP header. | ||
vary: ['Accept', 'Authorization', 'Origin', 'Accept-Encoding', 'Content-Type'] | ||
collection: | ||
pagination: | ||
items_per_page_parameter_name: itemsPerPage | ||
|
||
when@prod: | ||
api_platform: | ||
graphql: | ||
introspection: false | ||
graphiql: | ||
enabled: false | ||
graphql_playground: | ||
enabled: false | ||
http_cache: | ||
invalidation: | ||
enabled: true | ||
varnish_urls: [ '%env(VARNISH_URL)%' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.