fix forgejo,auth: apply oauth and ldap configurations

This commit is contained in:
Alexander Tomokhov
2025-04-16 22:17:23 +04:00
parent 5cc23464d5
commit 9dc47e6143

View File

@@ -306,15 +306,18 @@ in
if ${lib.getExe pkgs.curl} -X GET --silent --fail "${url}" > /dev/null if ${lib.getExe pkgs.curl} -X GET --silent --fail "${url}" > /dev/null
then then
echo "${url} responds to GET HTTP request (attempt #$i)" echo "${url} responds to GET HTTP request (attempt #$i)"
exit 0 break
else else
echo "${url} does not respond to GET HTTP request (attempt #$i)" echo "${url} does not respond to GET HTTP request (attempt #$i)"
echo sleeping for ${toString delaySec} seconds echo sleeping for ${toString delaySec} seconds
fi fi
sleep ${toString delaySec} sleep ${toString delaySec}
done done
echo "error, max attempts to access "${url}" have been used unsuccessfully!" if [[ "$i" > "${toString maxRetries}" ]]
exit 124 then
echo "error, max attempts to access "${url}" have been used unsuccessfully!"
exit 124
fi
''; '';
exe = lib.getExe config.services.forgejo.package; exe = lib.getExe config.services.forgejo.package;