configure websocket endpoint for production

This commit is contained in:
jonaswinkler
2021-02-02 16:22:36 +01:00
parent 138c8be45b
commit 556f979355
3 changed files with 13 additions and 8 deletions

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:")
};

View File

@@ -7,7 +7,8 @@ export const environment = {
apiBaseUrl: "http://localhost:8000/api/",
appTitle: "Paperless-ng",
version: "DEVELOPMENT",
wsBaseUrl: "ws://localhost:8000/ws/"
webSocketHost: "localhost:8000",
webSocketProtocol: "ws:"
};
/*