diff --git a/README.md b/README.md index eb0e405b1..d61142bcf 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ CSRF attacks. To make the local UI work, request it using a matched domain ``` npm run build docker build -t zui . -docker run -d -p 80:8383 zui +docker run -d -p 8383:8383 zui ``` #### Run tests diff --git a/conf/scality-cloud-nginx.conf b/conf/scality-cloud-nginx.conf index 6c78e15bd..e89e87994 100644 --- a/conf/scality-cloud-nginx.conf +++ b/conf/scality-cloud-nginx.conf @@ -18,18 +18,18 @@ server { rewrite /s3/(.*) /$1 break; proxy_pass http://s3.zenko.local/; proxy_set_header host s3.zenko.local; - proxy_set_header proxyhost ui.zenko.local; + proxy_set_header proxyhost 127.0.0.1:8383; proxy_set_header proxypath /s3/$1; } location /iam { - rewrite /iam/(.*) /$1 break; proxy_pass http://iam.zenko.local/; proxy_set_header host iam.zenko.local; + proxy_set_header proxyhost 127.0.0.1:8383; + proxy_set_header proxypath /iam; } location /sts { - rewrite /sts/(.*) /$1 break; proxy_pass http://sts.zenko.local/; proxy_set_header host sts.zenko.local; } diff --git a/webpack.dev.js b/webpack.dev.js index 4c6967126..743da8c15 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -28,7 +28,6 @@ module.exports = merge(common, { }, '/iam': { target: 'http://iam.zenko.local', - pathRewrite: {'^/iam' : ''}, bypass: function(req) { req.headers.proxypath = req.path; req.headers.proxyhost = '127.0.0.1:8383';