fix forgejo,auth: apply oauth and ldap configurations
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user