From 84fa44a12451ec71d01ee3ec01c2777dc1e79b34 Mon Sep 17 00:00:00 2001 From: Oleg Zharkov Date: Wed, 18 Aug 2021 18:44:06 +0200 Subject: [PATCH] webpack dev server on remote galaxy server --- client/README.md | 4 ++++ client/webpack.config.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/client/README.md b/client/README.md index e091c142848..1483f95d857 100644 --- a/client/README.md +++ b/client/README.md @@ -83,6 +83,10 @@ environment variable: GALAXY_URL="http://localhost:8000" make client-dev-server +Sometimes you want to run your UI against a remote Galaxy server. This is also possible, if you enable `CHANGE_ORIGIN` flag + + CHANGE_ORIGIN=true GALAXY_URL="https://usegalaxy.org/" make client-dev-server + ## Changing Styles/CSS Galaxy uses Sass for its styling, which is a superset of CSS that compiles down diff --git a/client/webpack.config.js b/client/webpack.config.js index 1fd253866ae..4eb2694f59c 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -232,6 +232,8 @@ module.exports = (env = {}, argv = {}) => { proxy: { "/": { target: process.env.GALAXY_URL || "http://localhost:8080", + secure: process.env.CHANGE_ORIGIN ? !process.env.CHANGE_ORIGIN : true, + changeOrigin: !!process.env.CHANGE_ORIGIN, }, }, },