try to setup demo

This commit is contained in:
Dobromir Popov
2024-06-15 17:32:12 +03:00
parent 98ae4f5e99
commit bab8528db1
7 changed files with 20 additions and 11 deletions

View File

@ -343,11 +343,11 @@ app.post('/log', (req, res) => {
});
app.get('/wsurl', (req, res) => {
if(process.env.PUBLIC_HOSTNAME){
process.env.WS_URL = `wss://${process.env.PUBLIC_HOSTNAME}`
}
console.log('Request for WS URL resolved with:', process.env.WS_URL );
res.status(200).send(process.env.WS_URL);
// if(process.env.PUBLIC_HOSTNAME){
// process.env.WS_URL = `wss://${process.env.PUBLIC_HOSTNAME}`
// }
console.log('Request for WS URL resolved with:', process.env.PUBLIC_WS_URL );
res.status(200).send(process.env.PUBLIC_WS_URL);
});
app.get('/settings', async (req, res) => {