mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix https/wss behind reverse proxy
This commit is contained in:
committed by
psychedelicious
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,
|
||||
|
||||
Reference in New Issue
Block a user