Skip to content

Commit

Permalink
ZENKO-3456 doc + local config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas2bert committed Apr 30, 2021
1 parent 79e4ec7 commit 66309bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions conf/scality-cloud-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 66309bb

Please sign in to comment.