diff --git a/archiver/ipfs.py b/archiver/ipfs.py index 5f50c59..ed27c26 100644 --- a/archiver/ipfs.py +++ b/archiver/ipfs.py @@ -5,7 +5,9 @@ def getIpfs(): connect = os.environ.get('IPFS_CONNECT') - timeout = 5 + timeout = int(os.environ.get('IPFS_TIMEOUT', 5)) + + print(f"connecting to IPFS {connect} with timeout={timeout}") if connect: return ipfshttpclient.connect(connect, timeout=timeout)