ThingWorx Flow > ThingWorx Flow 安裝與管理 > 管理 ThingWorx Flow > 重新配置 ThingWorx Flow 設定參數
重新配置 ThingWorx Flow 設定參數
重新配置 ThingWorx 主機與埠
<Nginx 安裝>\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 安裝>\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