Files
infrastructure/roles/aurweb/templates/aurweb-github-mirror.service.j2
Kristian Klausen 7480935e2f aurweb: Fix broken GitHub mirroring due to closed/killed connection
Pushing to GitHub sometimes take several minutes (due to packing AFAIU),
without any traffic between us and GitHub in the meantime, resulting in
the connection being closed/killed likely by a middlebox (firewall or
load balancer is my guess) at GitHub's end.

Ensure the connection is not closed/killed by enabling SSH's
ServerAliveInterval so there is traffic at regular intervals.

Fix #620
2025-07-06 17:31:24 +02:00

7 lines
210 B
Django/Jinja

[Service]
Type=oneshot
User={{ aurweb_user }}
WorkingDirectory={{ aurweb_git_dir }}
Environment="GIT_SSH_COMMAND=ssh -o ServerAliveInterval=25"
ExecStart=git push --force --all git@github.com:archlinux/aur.git