You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by kr...@apache.org on 2019/07/26 19:10:23 UTC
[knox] branch master updated: KNOX-1956 - Improve AdminUI
development by using angular proxy conf (#122)
This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new 8624167 KNOX-1956 - Improve AdminUI development by using angular proxy conf (#122)
8624167 is described below
commit 862416727ea739805caf0505318bbdef87877d6d
Author: Kevin Risden <ri...@users.noreply.github.com>
AuthorDate: Fri Jul 26 15:10:19 2019 -0400
KNOX-1956 - Improve AdminUI development by using angular proxy conf (#122)
Signed-off-by: Kevin Risden <kr...@apache.org>
---
gateway-admin-ui/package.json | 2 +-
gateway-admin-ui/proxy.conf.json | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/gateway-admin-ui/package.json b/gateway-admin-ui/package.json
index 202073b..ab9e5ea 100644
--- a/gateway-admin-ui/package.json
+++ b/gateway-admin-ui/package.json
@@ -3,7 +3,7 @@
"version": "1.0.0",
"license": "Apache-2.0",
"scripts": {
- "start": "ng serve",
+ "start": "ng serve --base-href /gateway/manager/admin-ui/ --deploy-url /gateway/manager/admin-ui/ --proxy-config proxy.conf.json",
"build": "ng build",
"build-prod": "ng build --prod",
"lint": "tslint \"admin-ui/**/*.ts\""
diff --git a/gateway-admin-ui/proxy.conf.json b/gateway-admin-ui/proxy.conf.json
new file mode 100644
index 0000000..a46db4f
--- /dev/null
+++ b/gateway-admin-ui/proxy.conf.json
@@ -0,0 +1,11 @@
+{
+ "/gateway/manager/api": {
+ "target": "http://localhost:8443",
+ "secure": false,
+ "logLevel": "debug",
+ "changeOrigin": true,
+ "pathRewrite": {
+ "^/gateway/manager": "/gateway/admin"
+ }
+ }
+}