imfreedom/k8s-cluster

998736369c9b
Parents c86e2c6742c7
Children 0856d92dad51
redirect imfreedom.org/wiki to wiki.imfreedom.org/index.php
--- a/50-imfreedom.org/kustomization.yaml Mon Jul 04 23:07:39 2022 -0500
+++ b/50-imfreedom.org/kustomization.yaml Sun Jul 10 21:41:09 2022 -0500
@@ -2,4 +2,5 @@
namespace: roost
resources:
- manifest.yaml
+ - middleware.yaml
---
--- a/50-imfreedom.org/manifest.yaml Mon Jul 04 23:07:39 2022 -0500
+++ b/50-imfreedom.org/manifest.yaml Sun Jul 10 21:41:09 2022 -0500
@@ -13,6 +13,7 @@
- name: imfreedom-org
port: 3000
middlewares:
+ - name: imfreedom-org-wiki
- name: https-redirect
---
apiVersion: traefik.containo.us/v1alpha1
@@ -29,6 +30,7 @@
- name: imfreedom-org
port: 3000
middlewares:
+ - name: imfreedom-org-wiki
- name: common-headers
- name: hsts-headers
tls:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-imfreedom.org/middleware.yaml Sun Jul 10 21:41:09 2022 -0500
@@ -0,0 +1,12 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: imfreedom-org-wiki
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/[^\/]+\/wiki\/(.*)$
+ replacement: https://wiki.imfreedom.org/index.php/${1}
+---
+