Skip to content

Commit 6b95310

Browse files
committed
Fixed problem with localhost/127.0.0.1 on web server.
1 parent b119327 commit 6b95310

File tree

3 files changed

+151
-10
lines changed

3 files changed

+151
-10
lines changed

src/htdocs-admin/package-lock.json

Lines changed: 149 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server_realtime/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*/
2020

21-
const IP_BIND = process.env.JS_IP_BIND || "localhost";
21+
const IP_BIND = process.env.JS_IP_BIND || "127.0.0.1";
2222
const HTTP_PORT = process.env.JS_HTTP_PORT || 8080;
2323
const GRAFANA_SERVER = process.env.JS_GRAFANA_SERVER || "http://127.0.0.1:3000";
2424
const OPCAPI_AP = '/Invoke/' // mimic of webhmi from OPC reference app https://github.com/OPCFoundation/UA-.NETStandard/tree/demo/webapi/SampleApplications/Workshop/Reference

src/server_realtime_auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
let AUTHENTICATION = process.env.JS_AUTHENTICATION === 'NOAUTH' ? false : true
22-
const IP_BIND = process.env.JS_IP_BIND || 'localhost'
22+
const IP_BIND = process.env.JS_IP_BIND || '127.0.0.1'
2323
const HTTP_PORT = process.env.JS_HTTP_PORT || 8080
2424
const GRAFANA_SERVER = process.env.JS_GRAFANA_SERVER || 'http://127.0.0.1:3000'
2525
const OPCAPI_AP = '/Invoke/' // mimic of webhmi from OPC reference app https://github.com/OPCFoundation/UA-.NETStandard/tree/demo/webapi/SampleApplications/Workshop/Reference

0 commit comments

Comments
 (0)