Force forgejo to use static ssh keys

This commit is contained in:
Astra Logical 2026-07-21 18:22:22 -04:00
parent 09f1fc920f
commit def715c36c
2 changed files with 16 additions and 1 deletions

View file

@ -14,4 +14,4 @@ spec:
volumes:
- name: target-volume
persistentVolumeClaim:
claimName: calibre-web-config-pvc
claimName: forgejo-data

View file

@ -18,6 +18,21 @@ spec:
labels:
app: forgejo
spec:
securityContext:
fsGroup: 1000
initContainers:
- name: fix-ssh-permissions
image: busybox:latest
command:
- sh
- -c
- |
mkdir -p /data/ssh
chown -R 1000:1000 /data/ssh
chmod 700 /data/ssh
volumeMounts:
- name: forgejo-data
mountPath: /data
containers:
- name: forgejo
image: codeberg.org/forgejo/forgejo:10