davidjumani commented on pull request #4885:
URL: https://github.com/apache/cloudstack/pull/4885#issuecomment-895108323


   @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
         }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to