From 6be664effec7117494e25b194ef8855b72fc9f95 Mon Sep 17 00:00:00 2001 From: Artur Marud <49659297+Marudny@users.noreply.github.com> Date: Fri, 20 May 2022 12:27:58 +0200 Subject: [PATCH] Added possibility to configure public gateway by env variables and changed default gw to gateway.ipfs.io (#1) Signed-off-by: Artur Marud --- pack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pack.py b/pack.py index 36b4cf1..afe3884 100644 --- a/pack.py +++ b/pack.py @@ -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