expose plausible event api
This commit is contained in:
20
plausible/resources/ingressroute.yaml
Normal file
20
plausible/resources/ingressroute.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: plausible-external
|
||||
labels:
|
||||
app.kubernetes.io/instance: plausible
|
||||
app.kubernetes.io/name: plausible
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`analytics.arcodange.fr`) && (PathPrefix(`/api/event`) || PathPrefix(`/js/`))
|
||||
middlewares:
|
||||
- name: kube-system-crowdsec@kubernetescrd
|
||||
services:
|
||||
- kind: Service
|
||||
name: plausible-web
|
||||
namespace: tools
|
||||
port: 8000
|
||||
Reference in New Issue
Block a user