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
then
echo "${url} responds to GET HTTP request (attempt #$i)"
exit 0
break
else
echo "${url} does not respond to GET HTTP request (attempt #$i)"
echo sleeping for ${toString delaySec} seconds
fi
sleep ${toString delaySec}
done
if [[ "$i" > "${toString maxRetries}" ]]
then
echo "error, max attempts to access "${url}" have been used unsuccessfully!"
exit 124
fi
'';
exe = lib.getExe config.services.forgejo.package;