umami: add script.js rewrite
This commit is contained in:
parent
7969db10aa
commit
5cacb7192f
|
@ -3,6 +3,8 @@ kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: umami
|
name: umami
|
||||||
namespace: olympus
|
namespace: olympus
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: umami-replace-js@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "analytics.0x76.dev"
|
- host: "analytics.0x76.dev"
|
||||||
|
|
|
@ -5,3 +5,4 @@ resources:
|
||||||
- external-secret.yaml
|
- external-secret.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- svc.yaml
|
- svc.yaml
|
||||||
|
- middleware.yaml
|
||||||
|
|
9
flux/cluster/apps/olympus/umami/middleware.yaml
Normal file
9
flux/cluster/apps/olympus/umami/middleware.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: umami-replace-js
|
||||||
|
namespace: olympus
|
||||||
|
spec:
|
||||||
|
replacePathRegex:
|
||||||
|
regex: ^/script\.js
|
||||||
|
replacement: /umami.js
|
Loading…
Reference in a new issue