Skip to content

Commit e0a0032

Browse files
author
Alvaro Arroyo Parejo
committed
adding environment variable to config file for CI/CD
1 parent 11ca210 commit e0a0032

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ESANEOCC/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,24 @@
99
Last update 02 Nov. 2021
1010
1111
"""
12+
import os
1213
from astropy import config as _config
1314

1415
class Conf(_config.ConfigNamespace):
1516
"""
1617
Configuration parameters for 'ESANEOCC'
1718
"""
18-
BASE_URL = 'https://neo.ssa.esa.int/'
19+
BASE_URL = 'https://' + os.getenv('NEOCC_PORTAL_IP',
20+
default='neo.ssa.esa.int')
1921

2022
API_URL = _config.ConfigItem(BASE_URL +
21-
'PSDB-portlet/download?file=')
23+
'/PSDB-portlet/download?file=')
2224

2325
EPHEM_URL = _config.ConfigItem(BASE_URL +
24-
'PSDB-portlet/ephemerides?des=')
26+
'/PSDB-portlet/ephemerides?des=')
2527

2628
SUMMARY_URL = _config.ConfigItem(BASE_URL +
27-
'search-for-asteroids?sum=1&des=')
29+
'/search-for-asteroids?sum=1&des=')
2830

2931
TIMEOUT = 60
3032

0 commit comments

Comments
 (0)