| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Think it would be good to show the management server to which the user is connected listed in the header next to his name. Thoughts @utchoang @rhtyd |
Sorry, something went wrong.
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
UI build: ✔️ |
Sorry, something went wrong.
|
@utchoang Did you face any CORS issue ? |
Sorry, something went wrong.
|
@davidjumani In the previous discussion at apache/cloudstack-primate#898 there was a discussion about the CORS issue, and I think it will be solved by Nginx proxy. I think so. |
Sorry, something went wrong.
Sorry, something went wrong.
|
@utchoang a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
UI build: ✔️ |
Sorry, something went wrong.
Indeed. As long as a proxy in between is used to use URLs and not different domains for management servers CORS is not an issue, for example:
These would be the relative URLs to reach the different management servers. This means that you do not set apiHost, but only set apiBase for each Management Server. Otherwise you need to deal with CORS indeed and thus add headers which can be done by Nginx/Apache. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
I have tested apache/cloudstack-primate#898, which worked. @utchoang are these two prs same ? |
Sorry, something went wrong.
There was a problem hiding this comment.
@utchoang great. lgtm
Sorry, something went wrong.
Thanks, was playing around in dev mode but got it working |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
enough lgtm, but has this been tested? (@davidjumani ?) |
Sorry, something went wrong.
|
@utchoang can you send some doc PR on how users will use it; for example how to configure the reverse proxy/server etc and will the dropdown be hidden for most users, say who don't want to specify or use this feature? |
Sorry, something went wrong.
|
@DaanHoogland This has been tested and working. For anyone who needs to test it locally, Update ui/public/config.json "servers": [
{
"name": "QA-Server",
"apiHost": "",
"apiBase": "/qa/api"
},
{
"name": "Localhost",
"apiHost": "",
"apiBase": "/client/api"
}
],
Update ui/vue.config.js proxy: {
'/qa': {
target: 'http://qa.cloudstack.cloud:8080/',
secure: false,
ws: false,
pathRewrite: {
'/qa/api': '/client/api',
'/qa/console': '/console'
},
cookiePathRewrite: {
'/qa/api': '/client/api',
'*': '/'
},
changeOrigin: true,
proxyTimeout: 10 * 60 * 1000 // 10 minutes
},
'/client': {
target: process.env.CS_URL || 'http://localhost:8080',
secure: false,
ws: false,
changeOrigin: true,
proxyTimeout: 10 * 60 * 1000 // 10 minutes
}
}
|
Sorry, something went wrong.
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Sorry, something went wrong.
| @@ -1,5 +1,12 @@ | |||
| { | |||
| "apiBase": "/client/api", | |||
| "servers": [ | |||
There was a problem hiding this comment.
I think this feature shouldn't be enabled by default, wouldn't it confuse users/admins? @utchoang @davidjumani @wido @nvazquez @sureshanaparti @weizhouapache @Pearl1594 @shwstppr ?
Sorry, something went wrong.
There was a problem hiding this comment.
If the list only shows one server at the time, what would it confuse them? There is only one option to select
Sorry, something went wrong.
There was a problem hiding this comment.
@rhtyd Yes. I will set it to default hidden mode. If the user/admin wants to enable it, the configuration can be changed.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good with @utchoang's change, disabled by default. +1 for getting this in asap
Sorry, something went wrong.
There was a problem hiding this comment.
+1
thanks @utchoang
Sorry, something went wrong.
|
UI build: ✔️ |
Sorry, something went wrong.
Sorry, something went wrong.
|
@davidjumani a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
UI build: ✔️ |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Merging based on approvals |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Related apache/cloudstack-primate#898
This PR for Add multiple management server support
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?