SSL termination

Expose your Bugsnag dashboard via HTTPS using Nginx

Install Nginx

Setting up a proxy to allow for SSL serving of your Bugsnag dashboard can be easily achieved with any reverse proxy, we recommend Nginx.

Install Nginx on the server where your Bugsnag Enterprise installation is located.

Locate your configuration file

Locate the nginx.conf for your install, typically at /etc/nginx/nginx.conf.

Handle HTTPS traffic

Create a server block in your Nginx configuration file to handle HTTPS traffic, and configure your SSL certificate:

server {
  listen 443 default_server ssl;
  ssl_certificate /path/to/your/cert.pem;
  ssl_certificate_key /path/to/your/cert.key;
  server_name bugsnag.your-domain.com;

  location / {
    proxy_pass http://127.0.0.1:49080;
    proxy_set_header HOST $host:$proxy_port;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}

Redirect HTTP traffic to HTTPS

Create the server block for your site to redirect HTTP traffic to HTTPS if you wish.

server {
  listen 80 default server;
  server_name bugsnag.your-domain.com;

  location / {
    rewrite ^ https://$http_host$request_uri?;
  }
}

Restart Nginx to pick up config changes, for example by running /etc/init.d/nginx restart.