Added section for try webp
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "0.8.10"
|
HELM_CHART_VERSION: "0.8.11"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: cloudypress
|
name: cloudypress
|
||||||
description: Helm chart to deploy Wordpress backed by PHP-CLI and Nginx Unit
|
description: Helm chart to deploy Wordpress backed by PHP-CLI and Nginx Unit
|
||||||
type: application
|
type: application
|
||||||
version: "0.8.8"
|
version: "0.8.11"
|
||||||
appVersion: "6.2.0"
|
appVersion: "6.2.0"
|
||||||
|
|||||||
@@ -134,6 +134,28 @@ data:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{{- if eq .Values.site.enableWebpRoute "true" }}
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"uri": [
|
||||||
|
"*.jpg",
|
||||||
|
"*.jpeg",
|
||||||
|
"*.gif",
|
||||||
|
"*.png"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"share": [
|
||||||
|
"/app/web$uri.webp",
|
||||||
|
"/app/web$uri"
|
||||||
|
],
|
||||||
|
"fallback": {
|
||||||
|
"pass": "applications/php/index"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{{- end }}
|
||||||
{
|
{
|
||||||
"action": {
|
"action": {
|
||||||
"share": "/app/web$uri",
|
"share": "/app/web$uri",
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ site:
|
|||||||
additional_env: {}
|
additional_env: {}
|
||||||
# MY_ENV_VAR: "value"
|
# MY_ENV_VAR: "value"
|
||||||
|
|
||||||
|
# Whether to enable the webp route
|
||||||
|
# enableWebpRoute: "false"
|
||||||
|
|
||||||
# Override the environment. Valid values are production, staging and development
|
# Override the environment. Valid values are production, staging and development
|
||||||
# overrideEnvironment: "staging"
|
# overrideEnvironment: "staging"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user