gitshark

Clone repository

git clone https://gitshark.de/git/workaround/Gitshark.git
git clone git@gitshark.de:workaround/Gitshark.git

← Commits

🔧 (mirrors): Make push mirrors work out of the box in dev mode

4cc3198bd8e2a1274eaaa1a23e38dbf6c3e1f396 · Michael Hainz · 2026-07-09T08:26:29Z

Changes

1 file changed, +5 -1

MODIFY src/main/resources/application.properties +5 -1
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 0786b0b..1e75422 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -83,7 +83,11 @@
83 83 gitshark.secret-key=${GITSHARK_SECRET_KEY:}
84 84 gitshark.mirror.max-attempts=${GITSHARK_MIRROR_MAX_ATTEMPTS:8}
85 85 gitshark.mirror.allow-insecure=${GITSHARK_MIRROR_ALLOW_INSECURE:false}
86 -%test.gitshark.secret-key=test-only-secret-key-0123456789
86 +# Dev/test convenience (same pattern as the fixed dev OIDC secrets): a fixed key so mirrors work
87 +# out of the box, and insecure targets allowed so a local instance can mirror to localhost.
88 +# Production has no default — set GITSHARK_SECRET_KEY explicitly.
89 +%dev,test.gitshark.secret-key=dev-only-mirror-secret-key-0123456789
90 +%dev.gitshark.mirror.allow-insecure=true
87 91 %test.gitshark.mirror.allow-insecure=true
88 92
89 93 # Federation (ActivityPub / ForgeFed) — disabled by default.

Keyboard shortcuts

?Show this help
g hGo home
EscClose dialog