plausible: adapt ingress for nuxt module plausible
This commit is contained in:
@@ -24,6 +24,7 @@ patches:
|
||||
- main: arcodange.duckdns.org
|
||||
sans:
|
||||
- analytics.arcodange.duckdns.org
|
||||
- www.arcodange.duckdns.org
|
||||
|
||||
resources:
|
||||
- resources/vaultauth.yaml
|
||||
@@ -82,4 +83,23 @@ patchesJson6902:
|
||||
version: v1
|
||||
kind: Deployment
|
||||
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
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: plausible-strip-prefix
|
||||
spec:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- "/_plausible"
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: plausible-external
|
||||
@@ -12,7 +21,20 @@ spec:
|
||||
- kind: Rule
|
||||
match: Host(`analytics.arcodange.fr`) && (PathPrefix(`/api/event`) || PathPrefix(`/js/`))
|
||||
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:
|
||||
- kind: Service
|
||||
name: plausible-web
|
||||
|
||||
Reference in New Issue
Block a user