mirror of https://github.com/morpheus65535/bazarr
19 lines
329 B
JavaScript
19 lines
329 B
JavaScript
|
const proxy = require("http-proxy-middleware");
|
||
|
|
||
|
const target = "http://localhost:6767";
|
||
|
|
||
|
module.exports = function (app) {
|
||
|
app.use(
|
||
|
proxy(["/api", "/images", "/test", "/bazarr.log"], {
|
||
|
target,
|
||
|
})
|
||
|
);
|
||
|
app.use(
|
||
|
proxy("/api/socket.io", {
|
||
|
target,
|
||
|
ws: true,
|
||
|
logLevel: "error",
|
||
|
})
|
||
|
);
|
||
|
};
|