Cloudflare was being too slow, changed to gateway.ipfs.io

This commit is contained in:
Alex Kelly 2020-01-06 14:37:24 -05:00
parent 60b260c86f
commit e1ddb50589

View file

@ -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'):