Skip to content

Commit 44b183c

Browse files
author
Florian Treml
committed
BOT-1506 fixed dictate routing
1 parent f1ad025 commit 44b183c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dictate/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ app.get('/demos/mob.html', (req, res) => {
2828
})
2929

3030
app.get('/', (req, res) => {
31-
res.redirect('./demos/mob.html')
31+
res.redirect('/dictate/demos/mob.html')
3232
})
3333

3434
app.use(express.static(dictateDir))

nginx.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ http {
4242
proxy_pass http://$upstream_dictate:56100/$2;
4343
}
4444
location / {
45+
resolver 127.0.0.11 valid=30s;
46+
set $upstream_frontend frontend;
4547
proxy_http_version 1.1;
4648
proxy_cache_bypass $http_upgrade;
4749
proxy_set_header Upgrade $http_upgrade;
4850
proxy_set_header Connection "Upgrade";
49-
proxy_pass http://frontend:56000/;
51+
proxy_pass http://$upstream_frontend:56000/;
5052
proxy_read_timeout 300;
5153
}
5254
}

0 commit comments

Comments
 (0)