plausible: adapt ingress for nuxt module plausible
All checks were successful
Helm Charts / Detect changed charts (push) Successful in 19s
Helm Charts / Application charts pgcat (push) Has been skipped
Helm Charts / Library charts tool (push) Has been skipped

This commit is contained in:
2025-12-11 13:52:49 +01:00
parent 87aac41959
commit ef3e1ab53a
3 changed files with 46 additions and 2 deletions

View File

@@ -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,25 @@ 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: crowdsec
namespace: kube-system
- name: plausible-strip-prefix
namespace: tools
services:
- kind: Service
name: plausible-web
namespace: tools
port: 8000

View File

@@ -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