From 873a49f63a8596d8035e91abf350ece268243769 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Fri, 9 Apr 2021 15:02:03 +0200 Subject: [PATCH] re6stnet: the registry will do geoip location --- software/re6stnet/software.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/software/re6stnet/software.cfg b/software/re6stnet/software.cfg index dd84de13e..c6d388b29 100644 --- a/software/re6stnet/software.cfg +++ b/software/re6stnet/software.cfg @@ -5,6 +5,7 @@ extends = ../../component/openssl/buildout.cfg ../../component/logrotate/buildout.cfg ../../component/apache/buildout.cfg + ../../component/geoip2/buildout.cfg ../../component/git/buildout.cfg ../../component/python-cryptography/buildout.cfg ../../stack/slapos.cfg @@ -36,12 +37,13 @@ eggs = ${python-cffi:egg} ${python-cryptography:egg} pyOpenSSL - re6stnet + re6stnet[geoip] initialization = import os path = os.environ.get('PATH', '/bin:/usr/bin') os.environ['PATH'] = '${openssl:location}/bin:${git:location}/bin' + ( path and ':' + path) + os.environ['GEOIP2_MMDB'] = "${geolite2-country:location}/GeoLite2-Country.mmdb" depends = ${re6stnet-develop:recipe} [re6stnet-backup] -- 2.30.9