Improvements to URL handling in the webapp allowing for SSL (when behind a proxy) #104296

Merged
Sybren A. Stüvel merged 5 commits from william-at-counter/flamenco:main into main 2024-04-11 15:00:55 +02:00
Showing only changes of commit 2e90ee2a45 - Show all commits

View File

@ -5,8 +5,6 @@ if (import.meta.env.MODE == 'development') {
url.port = '8080'; url.port = '8080';
} }
console.log(import.meta.env.MODE);
const URLs = { const URLs = {
api: `${url.protocol}//${url.hostname}:${url.port}/`, api: `${url.protocol}//${url.hostname}:${url.port}/`,
ws: `${url.protocol.replace('http', 'ws')}//${url.hostname}:${url.port}/`, ws: `${url.protocol.replace('http', 'ws')}//${url.hostname}:${url.port}/`,