feat: add rybbit tracking
This commit is contained in:
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
|
- name: gitea-themes-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: gitea-themes-storage
|
claimName: gitea-themes-storage
|
||||||
|
- name: gitea-custom-templates
|
||||||
|
configMap:
|
||||||
|
name: gitea-custom-templates
|
||||||
extraInitVolumeMounts:
|
extraInitVolumeMounts:
|
||||||
- name: gitea-themes-storage
|
- name: gitea-themes-storage
|
||||||
readOnly: false
|
readOnly: false
|
||||||
@@ -40,6 +43,10 @@ gitea:
|
|||||||
- name: gitea-themes-storage
|
- name: gitea-themes-storage
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: /data/gitea/public/assets/css
|
mountPath: /data/gitea/public/assets/css
|
||||||
|
- name: gitea-custom-templates
|
||||||
|
mountPath: /data/gitea/templates/custom/header.tmpl
|
||||||
|
subPath: header.tmpl
|
||||||
|
readOnly: true
|
||||||
initPreScript: |
|
initPreScript: |
|
||||||
wget https://github.com/catppuccin/gitea/releases/latest/download/catppuccin-gitea.tar.gz;
|
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;
|
tar -xvzf catppuccin-gitea.tar.gz -C /data/gitea/public/assets/css;
|
||||||
|
|||||||
Reference in New Issue
Block a user