diff --git a/application.properties b/application.properties index a2f653a..99c5c5e 100644 --- a/application.properties +++ b/application.properties @@ -9,3 +9,5 @@ spring.jpa.hibernate.ddl-auto=update spring.jackson.serialization.indent_output=true #- de.ph87.data.mqtt.uri=tcp://10.0.0.50:1883 +# +server.port=8084 \ No newline at end of file diff --git a/src/main/angular/src/app/common.ts b/src/main/angular/src/app/common.ts index ea48b48..090cc16 100644 --- a/src/main/angular/src/app/common.ts +++ b/src/main/angular/src/app/common.ts @@ -51,7 +51,7 @@ export function or(t: T | null | undefined, map: (t: T) => R, orElse: E } export function url(protocol: string, path: any[]): string { - return `${protocol}${location.protocol === 'https://' ? 's' : ''}://localhost:8080/${path.join('/')}`; + return `${protocol}${location.protocol === 'https://' ? 's' : ''}://${location.hostname}:8084/${path.join('/')}`; } export function stompServiceFactory() {