Reconfiguring ThingWorx Flow Setup Parameters
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
Was this helpful?