Skip to content

Commit caed70d

Browse files
committed
config: add TIMEOUT config option
Defaults to 45s instead of the 30s that Sinopia defaults to. This is because the intended use-case for this module is in chained npm registries. When registries are chained together in this fashion, the initial request for a module may result in it being transferred between multiple sites before getting to the client.
1 parent 280c786 commit caed70d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sinopia.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ uplinks:
1414
upstream:
1515
url: $(npm config get registry)
1616
maxage: ${MAXAGE:-5m}
17+
timeout: ${TIMEOUT:-45s}
1718
packages:
1819
'*':
1920
access: \$all

0 commit comments

Comments
 (0)