fix(#2560): make hive-core git non-interactive + bound stalled fetches
This commit is contained in:
parent
d00b349102
commit
618d774467
2 changed files with 18 additions and 0 deletions
|
|
@ -34,6 +34,15 @@ let
|
|||
[credential "http://${config.services.hyperhive.forge.domain}"]
|
||||
helper = hive-forge
|
||||
username = core
|
||||
[http]
|
||||
# Abort a stalled fetch instead of blocking startup indefinitely. If a
|
||||
# git+http transfer (e.g. `nix flake lock` of the forge-hosted config
|
||||
# inputs) drops below 1 KiB/s for 30s -- forge unreachable / not ready
|
||||
# on cold boot -- git fails fast rather than hanging the whole daemon.
|
||||
# Pairs with GIT_TERMINAL_PROMPT=0 (no credential-prompt hang) and the
|
||||
# migration shellout timeout in migrate.rs.
|
||||
lowSpeedLimit = 1024
|
||||
lowSpeedTime = 30
|
||||
'';
|
||||
|
||||
# git credential helper for hive-core's authenticated fetches of the
|
||||
|
|
|
|||
Loading…
Reference in a new issue