From ac4583339ecbc1335d09005bf5c5c7eeb02dd7f8 Mon Sep 17 00:00:00 2001 From: Lars Scheibling Date: Mon, 17 Apr 2023 21:46:01 +0000 Subject: [PATCH] Added redirect from wp-admin to wp/wp-admin --- .gitlab-ci.yml | 2 +- Chart/Chart.yaml | 2 +- Chart/templates/configmap.yaml | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b5910d8..17216cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - HELM_CHART_VERSION: "0.8.5" + HELM_CHART_VERSION: "0.8.6" stages: - deploy diff --git a/Chart/Chart.yaml b/Chart/Chart.yaml index def318c..1162959 100644 --- a/Chart/Chart.yaml +++ b/Chart/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: cloudypress description: Helm chart to deploy Wordpress backed by PHP-CLI and Nginx Unit type: application -version: "0.8.5" +version: "0.8.6" appVersion: "6.2.0" diff --git a/Chart/templates/configmap.yaml b/Chart/templates/configmap.yaml index a1cf103..7e6933c 100644 --- a/Chart/templates/configmap.yaml +++ b/Chart/templates/configmap.yaml @@ -115,6 +115,18 @@ data: ] } }, + { + "action": { + "return": 302, + "location": "/wp/wp-admin" + }, + "match": { + "uri": [ + "/wp-admin", + "/wp-admin/*" + ] + } + }, { "action": { "share": "/app/web$uri",