🔧 (mirrors): Make push mirrors work out of the box in dev mode
Changes
1 file changed, +5 -1
MODIFY
src/main/resources/application.properties
+5 -1
@@ -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.