Replace NODE and POD envvar with DUNITER and ESNODE, like g1stats

This commit is contained in:
poka 2022-03-29 00:27:00 +02:00
parent 9117def4b9
commit ec7fcdfb45
2 changed files with 8 additions and 8 deletions

View File

@ -2,11 +2,11 @@
DUNIKEY=
# Noeud Duniter
NODE=https://duniter-g1.p2p.legal/gva
DUNITER=https://duniter-g1.p2p.legal/gva
# Adresse du pod Cesium ou Gchange à utiliser
POD="https://g1.data.e-is.pro"
#POD="https://g1.data.adn.life"
#POD=https://g1.data.le-sou.org
#POD=https://g1.data.duniter.fr
#POD=https://data.gchange.fr
ESNODE="https://g1.data.e-is.pro"
#ESNODE="https://g1.data.adn.life"
#ESNODE=https://g1.data.le-sou.org
#ESNODE=https://g1.data.duniter.fr
#ESNODE=https://data.gchange.fr

View File

@ -17,11 +17,11 @@ dotenv_path = join(dirname(__file__),MY_PATH + '.env')
load_dotenv(dotenv_path)
# Set global values (default parameters) , regarding variables environments
node = os.getenv('NODE')
node = os.getenv('DUNITER') + '/gva'
if not node:
node="https://duniter-g1.p2p.legal/gva"
pod = os.getenv('POD')
pod = os.getenv('ESNODE')
if not pod:
pod="https://g1.data.e-is.pro"