ThingWorx Flow > Installation and Configuration > Configuring ThingWorx Flow > Reconfiguring ThingWorx Flow Setup Parameters
Reconfiguring ThingWorx Flow Setup Parameters
If you have entered an incorrect value while installing ThingWorx Flow and want to modify the value, then you need to reconfigure the ThingWorx Flow setup parameters as detailed in the following sections:
Instructions to regenerate the self-signed certificate are available here.
Non-HA Environment
Reconfigure ThingWorx host and port
In the <Nginx Install>\conf\conf.d\vhost-flow.conf file, under the following location objects, update the value of the proxy_pass parameter to the new ThingWorx server and port number:
/Thingworx/WS
/Thingworx/RemoteTunnel
/Thingworx/WSTunnelClient/
/Thingworx/WSTunnelServer/
/Thingworx
In the <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json file, update the value of the twx_endpoint parameter to the new ThingWorx server name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json file, update the value of the ThingWorx server in the WHITE_LIST_DOMAINS section.
Reconfigure Nginx host and port
In the <Nginx Install>\conf\conf.d\vhost-flow.conf file, update the value of the server_name parameter to the new Nginx server name and listen, and the $ssl_port parameter to the new Nginx port number.
In the <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json file, update the value of the WHITE_LIST_DOMAINS parameter to the new Nginx server name, and update the values of the UI_ENDPOINT and ENDPOINT parameters to the new Nginx server name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json file, update the value of the ENDPOINT parameter to the new Nginx server name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json file, update the values of the DOMAIN and TRIGGER_HOST parameters to the new Nginx server name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json file, update the values of the host, prefix_url, api_endpoint, oauth_server, and service_api_endpoint parameters to the new Nginx server name and port number.
Reconfigure database host and port
Update the values of the client, host, port, db_name, and ssl parameters in the following files:
<ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\exchange\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\db_seed\migration_config.json
HA Environment
Reconfigure HA proxy and port
Reconfigure the HA Proxy.
In the <Nginx Install>\conf\conf.d\vhost-flow.conf file, under the following location objects, update the value of the proxy_pass parameter to the new HA Proxy host name and port number:
/Thingworx/WS
/Thingworx/RemoteTunnel
/Thingworx/WSTunnelClient/
/Thingworx/WSTunnelServer/
/Thingworx
In the <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json file, update the value of the api_endpoint, oauth_server, service_api_endpoint, and twx_endpoint parameters to the new HA Proxy host name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json file, update the values of the ENDPOINT and UI_ENDPOINT parameters to the new HA Proxy host name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json file, update the values of the DOMAIN and TRIGGER_HOST parameters to the new HA Proxy host name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json file, update the value of ENDPOINT parameter to the new HA Proxy host name and port number.
In the <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json file, update the value of the HA proxy server in the WHITE_LIST_DOMAINS section.
Reconfigure HA Nginx host and port
Reconfigure the HA Proxy to point to the new Nginx server.
In the <Nginx Install>\conf\conf.d\vhost-flow.conf file, update the value of the server_name parameter to the new Nginx Server name and listen, and set the $ssl_port parameter to the new Nginx port number.
In the <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json file, update the value of the WHITE_LIST_DOMAINS parameter to the new Nginx server name.
In the <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json file, update the values of the host and prefix_url parameters to the new Nginx server name
Reconfigure database host and port
Update the values of the client, host, port, db_name, and ssl parameters in the following files:
<ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\exchange\deploymentConfig.json
<ThingWorx_Flow_Install_Location>\modules\db_seed\migration_config.json
Was this helpful?