plausible: adapt ingress for nuxt module plausible
This commit is contained in:
@@ -24,6 +24,7 @@ patches:
|
|||||||
- main: arcodange.duckdns.org
|
- main: arcodange.duckdns.org
|
||||||
sans:
|
sans:
|
||||||
- analytics.arcodange.duckdns.org
|
- analytics.arcodange.duckdns.org
|
||||||
|
- www.arcodange.duckdns.org
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- resources/vaultauth.yaml
|
- resources/vaultauth.yaml
|
||||||
@@ -82,4 +83,23 @@ patchesJson6902:
|
|||||||
version: v1
|
version: v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: plausible
|
name: plausible
|
||||||
path: add-initcontainer.yaml
|
path: patches/add-initcontainer.yaml
|
||||||
|
- target:
|
||||||
|
group: traefik.io
|
||||||
|
version: v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
name: plausible-route
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/routes/0
|
||||||
|
value:
|
||||||
|
kind: Rule
|
||||||
|
match: Host(`www.arcodange.duckdns.org`) && PathPrefix(`/_plausible/`)
|
||||||
|
middlewares:
|
||||||
|
- name: plausible-strip-prefix
|
||||||
|
namespace: tools
|
||||||
|
services:
|
||||||
|
- kind: Service
|
||||||
|
name: plausible-web
|
||||||
|
namespace: tools
|
||||||
|
port: 8000
|
||||||
@@ -1,4 +1,13 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: plausible-strip-prefix
|
||||||
|
spec:
|
||||||
|
stripPrefix:
|
||||||
|
prefixes:
|
||||||
|
- "/_plausible"
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: plausible-external
|
name: plausible-external
|
||||||
@@ -12,7 +21,20 @@ spec:
|
|||||||
- kind: Rule
|
- kind: Rule
|
||||||
match: Host(`analytics.arcodange.fr`) && (PathPrefix(`/api/event`) || PathPrefix(`/js/`))
|
match: Host(`analytics.arcodange.fr`) && (PathPrefix(`/api/event`) || PathPrefix(`/js/`))
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: kube-system-crowdsec@kubernetescrd
|
- name: crowdsec
|
||||||
|
namespace: kube-system
|
||||||
|
services:
|
||||||
|
- kind: Service
|
||||||
|
name: plausible-web
|
||||||
|
namespace: tools
|
||||||
|
port: 8000
|
||||||
|
- kind: Rule
|
||||||
|
match: Host(`arcodange.fr`) && PathPrefix(`/_plausible/`)
|
||||||
|
middlewares:
|
||||||
|
- name: crowdsec
|
||||||
|
namespace: kube-system
|
||||||
|
- name: plausible-strip-prefix
|
||||||
|
namespace: tools
|
||||||
services:
|
services:
|
||||||
- kind: Service
|
- kind: Service
|
||||||
name: plausible-web
|
name: plausible-web
|
||||||
|
|||||||
Reference in New Issue
Block a user