重新配置 ThingWorx Flow 设置参数
重新配置 ThingWorx 主机和端口
◦ 在 <Nginx Install>\conf\conf.d\vhost-flow.conf 文件中的以下 location 对象下,将 proxy_pass 参数值更新为新的 ThingWorx 服务器和端口号:
▪ /Thingworx/WS
▪ /Thingworx/RemoteTunnel
▪ /Thingworx/WSTunnelClient/
▪ /Thingworx/WSTunnelServer/
▪ /Thingworx
◦ 在 <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json 文件中,将 twx_endpoint 参数值更新为新的 ThingWorx 服务器名称和端口号。
◦ 在 <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json 文件中的 WHITE_LIST_DOMAINS 部分中,更新 ThingWorx 服务器的值。
重新配置 Nginx 主机和端口
◦ 在 <Nginx Install>\conf\conf.d\vhost-flow.conf 文件中,将 server_name 参数的值更新为新的 Nginx 服务器名称和监听端口,以及将 $ssl_port 参数更新为新的 Nginx 端口号。
◦ 在 <ThingWorx_Flow_Install_Location>\modules\oauth\deploymentConfig.json 文件中,将 WHITE_LIST_DOMAINS 参数值更新为新的 Nginx 服务器名称,并将 UI_ENDPOINT 和 ENDPOINT 参数值更新为新的 Nginx 服务器名称和端口号。
◦ 在 <ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json 文件中,将 ENDPOINT 参数值更新为新的 Nginx 服务器名称和端口号。
◦ 在 <ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json 文件中,将 DOMAIN 和 TRIGGER_HOST 参数值更新为新的 Nginx 服务器名称和端口号。
◦ 在 <ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json 文件中,将 host、prefix_url、api_endpoint、oauth_server 和 service_api_endpoint 参数的值更新为新的 Nginx 服务器名称和端口号。
重新配置数据库主机和端口
在以下文件中更新 client、host、port、db_name 和 ssl 参数值:
◦ <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