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

This commit is contained in:
2025-12-11 13:52:49 +01:00
parent 87aac41959
commit 559324a3c3
4 changed files with 45 additions and 2 deletions

View File

@@ -24,6 +24,11 @@ patches:
- main: arcodange.duckdns.org
sans:
- analytics.arcodange.duckdns.org
- www.arcodange.duckdns.org
- path: patches/ingress_rule_nuxt_plausible_proxy.yaml
target:
kind: IngressRoute
name: plausible-route
resources:
- resources/vaultauth.yaml
@@ -82,4 +87,4 @@ patchesJson6902:
version: v1
kind: Deployment
name: plausible
path: add-initcontainer.yaml
path: patches/add-initcontainer.yaml

View File

@@ -0,0 +1,17 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: plausible-route
spec:
routes:
- kind: Rule
match: Host(`www.arcodange.duckdns.org`) && PathPrefix(`/_plausible/`)
middlewares:
- name: crowdsec
namespace: kube-system
- name: plausible-strip-prefix
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,19 @@ 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
services:
- kind: Service
name: plausible-web