Skip to content

Commit 5f97da0

Browse files
committed
Change defaults for the JSON_SCADA_config_server_excel service.
1 parent 6dc8841 commit 5f97da0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

platform-windows/create_services.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ nssm install JSON_SCADA_alarm_beep "C:\json-scada\platform-windows\nodejs-runti
7070
nssm set JSON_SCADA_alarm_beep AppDirectory "C:\json-scada\src\alarm_beep"
7171
nssm set JSON_SCADA_alarm_beep Start SERVICE_AUTO_START
7272

73+
rem WARNING! This service has no security access control, use with care.
7374
nssm install JSON_SCADA_config_server_excel "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\config_server_for_excel\index.js"
7475
nssm set JSON_SCADA_config_server_excel AppDirectory "C:\json-scada\src\config_server_for_excel"
75-
nssm set JSON_SCADA_config_server_excel Start SERVICE_AUTO_START
76+
nssm set JSON_SCADA_config_server_excel Start SERVICE_DEMAND_START
77+
nssm set JSON_SCADA_config_server_excel AppEnvironmentExtra JS_CSEXCEL_IP_BIND=0.0.0.0 JS_CSEXCEL_HTTP_PORT=10001
78+
rem JS_CSEXCEL_IP_BIND=127.0.0.1 to enable just local access
7679

7780
rem For use with OSHMI HMI Shell
7881
rem nssm install JSON_SCADA_shell_api "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\shell-api\shell-api.js"

platform-windows/start_services.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ nssm start JSON_SCADA_server_realtime_auth
1818
nssm start JSON_SCADA_calculations
1919
nssm start JSON_SCADA_process_rtdata
2020
nssm start JSON_SCADA_process_hist
21-
nssm start JSON_SCADA_config_server_excel
21+
REM nssm start JSON_SCADA_config_server_excel
2222
REM nssm start JSON_SCADA_alarm_beep
2323
REM nssm start JSON_SCADA_shell_api
2424

0 commit comments

Comments
 (0)