From 1cf09d91bb15cccbfe7108d66a2c9efb651205c4 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Mon, 10 Feb 2020 11:38:04 +0300 Subject: [PATCH] Proxy API to Traefik in dev mode --- webui/quasar.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webui/quasar.conf.js b/webui/quasar.conf.js index abe9a24ff..07eec1a8d 100644 --- a/webui/quasar.conf.js +++ b/webui/quasar.conf.js @@ -152,7 +152,14 @@ module.exports = function (ctx) { devServer: { // https: true, port: 8081, - open: true // opens browser window automatically + open: true, // opens browser window automatically + proxy: { + // proxy all API requests to real Traefik + '/api': { + target: 'http://localhost:8080', + changeOrigin: true + } + } }, // animations: 'all', // --- includes all animations