File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
Last update 02 Nov. 2021
10
10
11
11
"""
12
+ import os
12
13
from astropy import config as _config
13
14
14
15
class Conf (_config .ConfigNamespace ):
15
16
"""
16
17
Configuration parameters for 'ESANEOCC'
17
18
"""
18
- BASE_URL = 'https://neo.ssa.esa.int/'
19
+ BASE_URL = 'https://' + os .getenv ('NEOCC_PORTAL_IP' ,
20
+ default = 'neo.ssa.esa.int' )
19
21
20
22
API_URL = _config .ConfigItem (BASE_URL +
21
- 'PSDB-portlet/download?file=' )
23
+ '/ PSDB-portlet/download?file=' )
22
24
23
25
EPHEM_URL = _config .ConfigItem (BASE_URL +
24
- 'PSDB-portlet/ephemerides?des=' )
26
+ '/ PSDB-portlet/ephemerides?des=' )
25
27
26
28
SUMMARY_URL = _config .ConfigItem (BASE_URL +
27
- 'search-for-asteroids?sum=1&des=' )
29
+ '/ search-for-asteroids?sum=1&des=' )
28
30
29
31
TIMEOUT = 60
30
32
You can’t perform that action at this time.
0 commit comments