ThingWorx Flow > ThingWorx Flow 安装和管理 > 管理 ThingWorx Flow > 重新配置 ThingWorx Flow 设置参数
重新配置 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_ENDPOINTENDPOINT 参数值更新为新的 Nginx 服务器名称和端口号。
<ThingWorx_Flow_Install_Location>\modules\lookup\deploymentConfig.json 文件中,将 ENDPOINT 参数值更新为新的 Nginx 服务器名称和端口号。
<ThingWorx_Flow_Install_Location>\modules\trigger\deploymentConfig.json 文件中,将 DOMAINTRIGGER_HOST 参数值更新为新的 Nginx 服务器名称和端口号。
<ThingWorx_Flow_Install_Location>\modules\ux\deploymentConfig.json 文件中,将 hostprefix_urlapi_endpointoauth_serverservice_api_endpoint 参数的值更新为新的 Nginx 服务器名称和端口号。
重新配置数据库主机和端口
在以下文件中更新 clienthostportdb_namessl 参数值:
<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