Cloudflare was being too slow, changed to gateway.ipfs.io
This commit is contained in:
parent
60b260c86f
commit
e1ddb50589
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ def root():
|
|||
</tr>
|
||||
<tr>
|
||||
<td>html</td>
|
||||
<td>Hit the IPFS hash via cloudflare-ipfs.com</td>
|
||||
<td>Hit the IPFS hash via gateway.ipfs.io</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>redir</td>
|
||||
|
@ -74,7 +74,7 @@ def redirectDomain(domain, action=None):
|
|||
else:
|
||||
ipfshash = ipfs_hash
|
||||
response.set_header('Location',
|
||||
f"https://cloudflare-ipfs.com/{ipfshash}")
|
||||
f"https://gateway.ipfs.io/{ipfshash}")
|
||||
elif action == 'redir':
|
||||
try:
|
||||
if not redirect_url.startswith('http'):
|
||||
|
|
Loading…
Reference in a new issue