feat: add rybbit tracking #5823
12
clusters/cl01tl/helm/gitea/templates/config-map.yaml
Normal file
12
clusters/cl01tl/helm/gitea/templates/config-map.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: gitea-custom-templates
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/name: gitea-custom-templates
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||
data:
|
||||
header.tmpl: |
|
||||
<script defer src="https://rybbit.alexlebens.dev/api/script.js" data-website-id="b515c34a6dcc"></script>
|
||||
@@ -32,6 +32,9 @@ gitea:
|
||||
- name: gitea-themes-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-themes-storage
|
||||
- name: gitea-custom-templates
|
||||
configMap:
|
||||
name: gitea-custom-templates
|
||||
extraInitVolumeMounts:
|
||||
- name: gitea-themes-storage
|
||||
readOnly: false
|
||||
@@ -40,6 +43,10 @@ gitea:
|
||||
- name: gitea-themes-storage
|
||||
readOnly: true
|
||||
mountPath: /data/gitea/public/assets/css
|
||||
- name: gitea-custom-templates
|
||||
mountPath: /data/gitea/templates/custom/header.tmpl
|
||||
subPath: header.tmpl
|
||||
readOnly: true
|
||||
initPreScript: |
|
||||
wget https://github.com/catppuccin/gitea/releases/latest/download/catppuccin-gitea.tar.gz;
|
||||
tar -xvzf catppuccin-gitea.tar.gz -C /data/gitea/public/assets/css;
|
||||
|
||||
Reference in New Issue
Block a user