Reorder ssl redirect

This commit is contained in:
Kristian Polso 2018-06-01 23:23:53 +03:00
parent 8ea8e81e89
commit d64137c6f6

View file

@ -34,13 +34,14 @@ if(typeof process.env.SLACK_WEBHOOK_URL != 'undefined') {
}
app = express();
// enable ssl redirect
app.use(sslRedirect());
app.use(serveStatic(__dirname + "/content/.vuepress/dist"));
app.use(cors());
// enable ssl redirect
app.use(sslRedirect(['other','development', 'staging', 'production']));
app.get('/forward', function(req, res) {
var allowedMethods = ["wallet_send", "resolve", "publish"];