|
|
hace 8 años | |
|---|---|---|
| src | hace 8 años | |
| tools | hace 8 años | |
| .babelrc | hace 8 años | |
| .csslintrc | hace 9 años | |
| .dockerignore | hace 8 años | |
| .eslintignore | hace 8 años | |
| .eslintrc | hace 9 años | |
| .gitignore | hace 8 años | |
| .jscsrc | hace 9 años | |
| Dockerfile | hace 8 años | |
| LICENSE | hace 9 años | |
| README.md | hace 9 años | |
| package.json | hace 8 años | |
| preprocessor.js | hace 8 años |
yarn install to install packages and dependenciesconfig.sample.js to config.js in src directorycoriolisUrl variable to match the coriolis server pathyarn buildnode build/server.js to execute the buildYour server will be running at http://localhost:3000/
yarn start to start local development serverYour 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.
sudo a2enmod headers, sudo a2enmod rewrite, sudo a2enmod proxy, sudo a2enmod proxy_httpservice apache2 restartadd 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