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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>html</td>
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>redir</td>
|
<td>redir</td>
|
||||||
|
@ -74,7 +74,7 @@ def redirectDomain(domain, action=None):
|
||||||
else:
|
else:
|
||||||
ipfshash = ipfs_hash
|
ipfshash = ipfs_hash
|
||||||
response.set_header('Location',
|
response.set_header('Location',
|
||||||
f"https://cloudflare-ipfs.com/{ipfshash}")
|
f"https://gateway.ipfs.io/{ipfshash}")
|
||||||
elif action == 'redir':
|
elif action == 'redir':
|
||||||
try:
|
try:
|
||||||
if not redirect_url.startswith('http'):
|
if not redirect_url.startswith('http'):
|
||||||
|
|
Loading…
Reference in a new issue