server {
  listen 80;
  server_name deploy.<%= @app_domain %>;

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

server {
  listen 80;
  server_name puppetdb.<%= @app_domain %>;

  location / {
    proxy_pass http://puppet-1.management.production/;
  }
}

server {
  listen 80;
  server_name deploy.*;

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

server {
  listen 80;
  server_name puppetdb.*;

  location / {
    proxy_pass http://puppet-1.management.production/;
  }
}

Use wildcards for the app domain on jenkins
Use wildcards for the app domain on jenkins

This is so that we don't have to fudge around with the @app_domain being
production on all of: preview, staging, and production.
