0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

Site runs and all tests pass

This commit is contained in:
Trevor Buckner
2024-11-20 16:21:35 -05:00
parent b7c49218ae
commit fb9148ada5
48 changed files with 230 additions and 217 deletions

View File

@@ -1,4 +1,4 @@
module.exports = (req, res, next)=>{
export default (req, res, next)=>{
if(process.env.NODE_ENV === 'local' || process.env.NODE_ENV === 'docker') return next();
if(req.header('x-forwarded-proto') !== 'https') {
return res.redirect(302, `https://${req.get('Host')}${req.url}`);