Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Install the tools you will need with the mac package manager homebrew

...

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install java8: 

brew update 
brew cask install java8

- install maven

...

3. Connect your shell to the default machine.

$ eval "$(docker-machine env default)"

- create an Elastic Search docker container

...

  • docker-compose up  ( use "-d" option to run in the background)
  • docker ps → verify the container is running
  • in a Chrome browser http://192.168.99.100:9200/ (localhost:9200 if your using docker for mac - native) - you should get an elastic search REST response

...

Code Block
events {
    worker_connections  1024;
}
http {
 server {   
 listen       80;
 server_name local.dev.com;
#jamesh:
set $token eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJUcTdvbmNHMVlXUXlMT1FWOFM3NVVvQ3VTak5uczdPQkZJWE1KUm1DMjVRIn0.eyJqdGkiOiI5YjBiM2JkMS04M2NiLTQzNTMtOGIyMi05NjI3NzQ1MjViMjciLCJleHAiOjE0Nzc0OTIzODcsIm5iZiI6MCwiaWF0IjoxNDc3NDkyMDg3LCJpc3MiOiJodHRwczovL2Rldi1hcGkudHJhbnNmb3JtY2xvdWQubmV0L2F1dGgvcmVhbG1zL2xpbiIsImF1ZCI6ImFwaS1nYXRld2F5Iiwic3ViIjoiMDg5MDJhZDItYmMwMC00NTAxLTg2OTAtNmZhMjY0M2JkMmUwIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYXBpLWdhdGV3YXkiLCJub25jZSI6IllIWnF4c0VtdWxoN1lxY25zc2xCN0VERURPSG1odU51TE13aVBFM0pVX3ciLCJhdXRoX3RpbWUiOjE0Nzc0OTIwODcsInNlc3Npb25fc3RhdGUiOiJkYTY2ZGVmNy0xNDAyLTRhYTktODViYS1iOTg0ZjEyNWZjMjIiLCJhY3IiOiIxIiwiY2xpZW50X3Nlc3Npb24iOiI1MTBlOGVjOS00OWMxLTRjNGMtOWI0NC05NmM0MTE2YzI3ZGQiLCJhb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http://127.0.0.1:9000;
    }
    location /admin {
        proxy_pass http://127.0.0.1:4200;
        proxy_pass_request_headers on;
    }


	# Proxy the Websocket connection to the Webpack server.
    location /sockjs-node/ {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        rewrite ^/(.*)$  /$1  break;
        proxy_set_header Host localhost;
        proxy_pass http://localhost:4200/;
    }

    location /revalidation {
    proxy_pass http://127.0.0.1:8080;
        proxy_set_header OIDC_access_token $token;
    proxy_pass_request_headers on;
    }
    location /concerns {
        proxy_pass http://127.0.0.1:8084;
    proxy_set_header OIDC_access_token $token;
        proxy_pass_request_headers on;
    }
    location /connection-discrepancies {
        proxy_pass http://127.0.0.1:8095;
        proxy_set_header OIDC_access_token $token;
        proxy_pass_request_headers on;
    }
   location /reference {
        proxy_pass http://127.0.0.1:8088;
        proxy_set_header OIDC_access_token $token;
        proxy_pass_request_headers on;
    }
    location /profile {
        proxy_pass http://127.0.0.1:8082;
        proxy_set_header OIDC_access_token $token;
        proxy_pass_request_headers on;
    }
    location /common {
        rewrite /common/(.*) /$1 break;
        proxy_pass http://127.0.0.1:8085;
    }
    
    location /notifications {
    proxy_pass http://127.0.0.1:8092;
    proxy_set_header OIDC_access_token $token;
    proxy_pass_request_headers on;
    }
    location /tcs {
        proxy_pass http://127.0.0.1:8093;
    proxy_set_header OIDC_access_token $token;
    proxy_pass_request_headers on;
    }

    location /assessments {
        proxy_pass http://127.0.0.1:8097;
        proxy_set_header OIDC_access_token $token;
        proxy_pass_request_headers on;
    }

    location /tracking {
        rewrite /tracking/(.*) /$1 break;
        proxy_pass http://127.0.0.1:8091;
    }
    
    location /fonts {
        proxy_pass http://127.0.0.1:8085;
    }
    location /favicon.ico {
        proxy_pass http://127.0.0.1:8085/favicon/favicon.ico;
    }
 
    location /favicon-16x16.png {
        proxy_pass http://127.0.0.1:8085/favicon/favicon-16x16.png;
    }
     
    location /favicon-32x32.png {
        proxy_pass http://127.0.0.1:8085/favicon/favicon-32x32.png;
    }
    
 }
    include servers/*;
}

...