server {
  listen 80;
  server_name deploy.*;

  location / {
    proxy_pass http://localhost:8080;
  }
}

server {
  listen 80;
  server_name puppetdb.*;

  location / {
    proxy_pass http://puppetdb.cluster/;
  }
}

server {
  listen 80;
  server_name deploy.*;

  location / {
    proxy_pass http://localhost:8080;

    location /api/json {
      proxy_pass http://localhost:8080;

      add_header "Access-Control-Allow-Origin" "*";
      add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
      add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept";
      add_header "Access-Control-Allow-Credentials" "true";
    }

  }
}

server {
  listen 80;
  server_name puppetdb.*;

  location / {
    proxy_pass http://puppetdb.cluster/;
  }
}

Add CORS for deployment so we can see build status on dashboards
Add CORS for deployment so we can see build status on dashboards
