r/forgejo • u/frobnosticus • Nov 02 '26
Fully disabling automated sync of pull repos?
EDIT: Solved
This did the trick...
[cron.update_mirrors]
ENABLED: false
Exactly what I wanted. Now I can manually trigger a sync using the rest api on a per-repo basis without forgejo being so damn chatty.
I've had forgejo installed for a couple/few weeks and adore it.
But it's FAR too aggressive with automatically syncing a pull repo and I've no interest in it governing that synchronization process.
How do I shut down the automation entirely? I'll trigger the sync via the api when I need to.
1
Upvotes
2
u/topMarksForNotTrying Nov 02 '26
I found this in the docs to turn off mirroring.
This section documents the cron job that triggers the mirroring.
Based on those 2 sections, I think it might be possible to disable the auto mirroring and then trigger it through a single-run cron job.
I don't have access to my forgejo instance right now so I cannot test this out.
2
u/krimpenrik Nov 02 '26
Going to setup forgejo can you explain with what you encountering and mean with syncing a pull repo???
2
u/Minimal-Matt Nov 02 '26
In the settings of the pull mirror repository you can set "0" to disable periodic sync
1
u/luisbandalap Nov 02 '26
Try using gitea mirror instead of forgejo built in functionality.
https://gitea-mirror.raylabs.io/
It has an API so you can set-up a webhook to pull and push changes.