diff --git a/ereuse_devicehub/templates/workbench/wbSettings.ini b/ereuse_devicehub/templates/workbench/wbSettings.ini index a0357ab0..b711ae7d 100644 --- a/ereuse_devicehub/templates/workbench/wbSettings.ini +++ b/ereuse_devicehub/templates/workbench/wbSettings.ini @@ -3,7 +3,7 @@ DH_TOKEN = {{ token }} DH_URL = {{ url }} {% if erease_basic %} -DH_HOST = {{ host }} +DH_HOST = {{ api_host }} DH_DATABASE = {{ schema }} DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/ @@ -17,7 +17,7 @@ WB_ERASE_LEADING_ZEROS = False WB_DEBUG = True {% elif baseline_erease %} -DH_HOST = {{ host }} +DH_HOST = {{ api_host }} DH_DATABASE = {{ schema }} DEVICEHUB_URL = https://${DB_HOST}/${DB_DATABASE}/ diff --git a/ereuse_devicehub/workbench/views.py b/ereuse_devicehub/workbench/views.py index 84dbba63..1b81c8f2 100644 --- a/ereuse_devicehub/workbench/views.py +++ b/ereuse_devicehub/workbench/views.py @@ -68,6 +68,7 @@ class SettingsView(GenericMixin): url = "https://{}/actions/".format(app.config['API_HOST']) self.wbContext['url'] = url self.wbContext['host'] = app.config['HOST'] + self.wbContext['api_host'] = app.config['API_HOST'] self.wbContext['schema'] = app.config['SCHEMA'] if self.opt == 'erease_basic':