HEPData / hepdata

Repository for main HEPData web application
https://hepdata.net
GNU General Public License v2.0
40 stars 11 forks source link

converter: use `CFG_CONVERTER_URL` from Flask configuration #730

Closed GraemeWatt closed 7 months ago

GraemeWatt commented 7 months ago

Currently, the converter URL is obtained using:

from hepdata.config import CFG_CONVERTER_URL

which takes a value of https://converter.hepdata.net. For the Kubernetes configuration, we want to specify different URLs for the QA and production deployments. Therefore, the converter URL should instead be obtained from Flask:

from flask import current_app
CFG_CONVERTER_URL = current_app.config.get('CFG_CONVERTER_URL')