mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix https/wss behind reverse proxy
This commit is contained in:
parent
0c1a7e72d4
commit
242d860a47
@ -12,8 +12,9 @@ import { socketSubscribed, socketUnsubscribed } from './actions';
|
||||
|
||||
export const socketMiddleware = () => {
|
||||
let areListenersSet = false;
|
||||
|
||||
let socketUrl = `ws://${window.location.host}`;
|
||||
|
||||
let wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
||||
let socketUrl = `${wsProtocol}://${window.location.host}`;
|
||||
|
||||
const socketOptions: Parameters<typeof io>[0] = {
|
||||
timeout: 60000,
|
||||
|
Loading…
Reference in New Issue
Block a user