configure websocket endpoint for production

This commit is contained in:
jonaswinkler committed 2021-02-02 16:22:36 +01:00
1 parent b2a744e880
commit 08d96a1b76
3 files changed
+13 -8

No files matched your search

+3 -1
View File
@@ -2,5 +2,7 @@ export const environment = {
production: true,
apiBaseUrl: "/api/",
appTitle: "Paperless-ng",
version: "1.1.0"
version: "1.1.0",
webSocketHost: window.location.host,
webSocketProtocol: (window.location.protocol == "https:" ? "wss:" : "ws:")
};