added log manager to docker build

main
alex 2023-09-14 21:59:50 +02:00
parent b2f7e3632a
commit 6b2dada682
1 changed files with 4 additions and 3 deletions

View File

@ -18,22 +18,23 @@ if (window.location.hostname === "localhost" && window.location.port === "") {
apiAddress = "http://localhost/api/v1"; apiAddress = "http://localhost/api/v1";
staticContentAddress = "http://localhost/api/"; staticContentAddress = "http://localhost/api/";
wsAddress = "ws://localhost/ws"; wsAddress = "ws://localhost/ws";
logApiAddress = "http://localhost/logtest"; // TODO: change to log api address logApiAddress = "http://localhost/lm/v1/log";
} else if (window.location.hostname === "localhost") { } else if (window.location.hostname === "localhost") {
// programming on localhost // programming on localhost
apiAddress = "http://localhost:50050/v1"; apiAddress = "http://localhost:50050/v1";
staticContentAddress = "http://localhost:50050/"; staticContentAddress = "http://localhost:50050/";
wsAddress = "ws://localhost:50050/ws"; wsAddress = "ws://localhost:50050/ws";
logApiAddress = "http://127.0.0.1:50110/v1/log"; logApiAddress = "http://127.0.0.1:50110/v1/log";
} else if (window.location.hostname === "192.168.178.93") { /*} else if (window.location.hostname === "192.168.178.93") {
apiAddress = "http://192.168.178.93:50050/v1"; apiAddress = "http://192.168.178.93:50050/v1";
staticContentAddress = "http://192.168.178.93:50050/"; staticContentAddress = "http://192.168.178.93:50050/";
wsAddress = "ws://192.168.168.93:50050/ws"; wsAddress = "ws://192.168.168.93:50050/ws"; */
} else { } else {
// production // production
apiAddress = `${window.location.protocol}//${window.location.hostname}/api/v1`; apiAddress = `${window.location.protocol}//${window.location.hostname}/api/v1`;
staticContentAddress = `${window.location.protocol}//${window.location.hostname}/api/`; staticContentAddress = `${window.location.protocol}//${window.location.hostname}/api/`;
wsAddress = `${wssProtocol}${window.location.hostname}/ws`; wsAddress = `${wssProtocol}${window.location.hostname}/ws`;
logApiAddress = `${wssProtocol}${window.location.hostname}/lm/v1/log`;
} }
export const Constants = { export const Constants = {