Added possibility to configure public gateway by env variables and changed default gw to gateway.ipfs.io (#1)

Signed-off-by: Artur Marud <artur@status.im>
This commit is contained in:
Artur Marud 2022-05-20 12:27:58 +02:00 committed by GitHub
parent 43db8cc7e1
commit 6be664effe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
import re
import requests
import logging
import os
from ipfs import ipfsBinToText
LOG = logging.getLogger('root')
IPFS_GATEWAY = "https://cloudflare-ipfs.com/ipfs"
IPFS_GATEWAY = os.environ.get('IPFS_GATEWAY','https://gateway.ipfs.io/ipfs')
class StickerPack:
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1577.md