Cloud Migration Web UI

Nashwan Azhari d63c8eac8b Add new OpenStack Region labels. hace 8 años
src d63c8eac8b Add new OpenStack Region labels. hace 8 años
tools 31dcd37ec0 Set 'process.env.CORIOLIS_URL' as a global variable instead of having to use 'CORIOLIS_URL' in ‘config.js’ when developing hace 8 años
.babelrc b33a4edef0 - Updates configuration for tests hace 8 años
.csslintrc efdb472d38 Initial commit hace 9 años
.dockerignore 4cee086424 Added Dockerfile hace 8 años
.eslintignore 265c679032 LoadingIcon snapshot tests hace 8 años
.eslintrc efdb472d38 Initial commit hace 9 años
.gitignore 06b3fbd12e Mock "Login with Microsoft" Button CORWEB-58 hace 8 años
.jscsrc efdb472d38 Initial commit hace 9 años
Dockerfile 4cee086424 Added Dockerfile hace 8 años
LICENSE efdb472d38 Initial commit hace 9 años
README.md 0411ff5b14 - Adds config sample, removes config from repo hace 9 años
package.json 4d2a033b89 Fix issue with jest-cli package version hace 8 años
preprocessor.js b33a4edef0 - Updates configuration for tests hace 8 años

README.md

Coriolis UI

Install instructions

  • node >=6.x and yarn are required
  • clone repo
  • run yarn install to install packages and dependencies
  • rename config.sample.js to config.js in src directory
  • change the coriolisUrl variable to match the coriolis server path

Build instructions

  • run yarn build
  • run node build/server.js to execute the build

Your server will be running at http://localhost:3000/

Development mode

  • run yarn start to start local development server

Your development server will be running at http://localhost:3000/

This should be used only for development, as it contains live-reload and other development tools.

Apache Configuration

Apache modules

  • enable apache modules: sudo a2enmod headers, sudo a2enmod rewrite, sudo a2enmod proxy, sudo a2enmod proxy_http
  • restart apache service: service apache2 restart

Apache CORS config

  • add this configuration to .htaccess or apache site configuration

    Header always set Access-Control-Allow-Origin "*"
    Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
    Header always set Access-Control-Max-Age "1000"
    Header always set Access-Control-Allow-Headers "x-requested-with, X-Auth-Token, X-Subject-Token, Content-Type, origin, authorization, accept, client-security-token"
    Header always set Access-Control-Allow-Credentials "true"
    Header add Access-Control-Expose-Headers "X-Subject-Token"
    # Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request.
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} OPTIONS
    RewriteRule ^(.*)$ $1 [R=200,L]
    
    # Proxy matches paths to appropiate services
    ProxyPassMatch ^/identity/(.*)$ http://127.0.0.1:5000/v3/$1
    ProxyPassMatch ^/barbican/(.*)$ http://127.0.0.1:9311/$1
    ProxyPassMatch ^/coriolis/(.*)$ http://127.0.0.1:7667/v1/$1
    ProxyPassMatch ^/((?!identity|coriolis|barbican).*)$ http://127.0.0.1:3000/$1