From 5f9106a212a251920360f9763848d07f79688505 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 30 Dec 2022 18:08:35 +0100 Subject: git: pull blog from non-redirected port --- roles/git/files/runner-zola/webhook.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/git/files/runner-zola/webhook.sh b/roles/git/files/runner-zola/webhook.sh index 6f20c8c..1c10685 100755 --- a/roles/git/files/runner-zola/webhook.sh +++ b/roles/git/files/runner-zola/webhook.sh @@ -18,7 +18,10 @@ while true; do REF=${REF:-main} if [ ! -d blog ]; then - git clone https://git.memzero.de/blog + # Use non-redirected port as redirection is handled via PREROUTING + # iptables rules and if this hook runs on the same machine the request + # packages will not go through the routing chain. + git clone https://git.memzero.de:8443/blog fi git -C blog submodule init git -C blog submodule update -- cgit v1.2.3