var artsyEigenWebAssociation = require('artsy-eigen-web-association');
var express = require('express');
var https = require('https');
var http = require('http');
var morgan = require('morgan');
var path = require('path');
var fs = require('fs');
var app = express();
app.use(morgan('combined'));
app.use('/apple-app-site-association', artsyEigenWebAssociation);
app.use(function(req, res, next) {
  res.setHeader('Strict-Transport-Security', 'max-age=0');
  res.redirect(301, 'https://www.artsy.net' + req.url);
});
http.createServer(app).listen(80);
https.createServer({
  key: fs.readFileSync('/srv/www/artsy_wwwify/shared/config/ssl.key').toString(),
  cert: fs.readFileSync('/srv/www/artsy_wwwify/shared/config/ssl.crt').toString()
}, app).listen(443);

var artsyEigenWebAssociation = require('artsy-eigen-web-association');
var express = require('express');
var https = require('https');
var http = require('http');
var morgan = require('morgan');
var path = require('path');
var fs = require('fs');
var app = express();
app.use(morgan('combined'));
app.use('/(.well-known/)?apple-app-site-association', artsyEigenWebAssociation);
app.use(function(req, res, next) {
  res.setHeader('Strict-Transport-Security', 'max-age=0');
  res.redirect(301, 'https://www.artsy.net' + req.url);
});
http.createServer(app).listen(80);
https.createServer({
  key: fs.readFileSync('/srv/www/artsy_wwwify/shared/config/ssl.key').toString(),
  cert: fs.readFileSync('/srv/www/artsy_wwwify/shared/config/ssl.crt').toString()
}, app).listen(443);

Add alternative site assocation path.
[Eigen] Add alternative site assocation path.
