1
0
mirror of https://github.com/containous/traefik.git synced 2025-02-10 13:57:34 +03:00
traefik/webui/conf/browsersync.conf.js

29 lines
506 B
JavaScript
Executable File

const conf = require('./gulp.conf');
const proxy = require('http-proxy-middleware');
const apiProxy = proxy('/api', {
target: 'http://localhost:8080',
changeOrigin: true
});
const healthProxy = proxy('/health', {
target: 'http://localhost:8080',
changeOrigin: true
});
module.exports = function () {
return {
server: {
baseDir: [
conf.paths.tmp,
conf.paths.src
],
middleware: [
apiProxy,
healthProxy
]
},
open: false
};
};