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) => {

View File

@ -4,6 +4,8 @@ FROM node:20
# Create and change to the app directory
WORKDIR /usr/src/app
ENV NODE_ENV=demo
# Copy the package.json and package-lock.json files
COPY package*.json ./
@ -13,8 +15,8 @@ RUN npm install
# Copy the rest of the application code
COPY . .
# Expose port 3000
EXPOSE 8880
EXPOSE 8881
# Start the application
CMD ["npm", "run", "start:demo-chat"]