Fix websockets in dev server proxy
This commit is contained in:
parent
303a9827a1
commit
91cdfc9378
@ -25,7 +25,6 @@
|
||||
"last 2 safari versions",
|
||||
"last 2 ios_saf versions"
|
||||
],
|
||||
"proxy": "http://localhost:29316",
|
||||
"homepage": ".",
|
||||
"devDependencies": {
|
||||
"sass-lint": "^1.12.1",
|
||||
|
6
maubot/management/frontend/src/setupProxy.js
Normal file
6
maubot/management/frontend/src/setupProxy.js
Normal file
@ -0,0 +1,6 @@
|
||||
const proxy = require("http-proxy-middleware")
|
||||
|
||||
module.exports = function(app) {
|
||||
app.use(proxy("/_matrix/maubot/v1", { target: "http://localhost:29316" }))
|
||||
app.use(proxy("/_matrix/maubot/v1/logs", { target: "http://localhost:29316", ws: true }))
|
||||
}
|
Loading…
Reference in New Issue
Block a user