Skip to content

includable/express-middleware-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

middleware-https

Simple force HTTPS redirect middleware, meant for use behind a proxy (e.g. Heroku).

Installation

npm i @includable/middleware-https

Usage

const express = require('express')
const https = require('@includable/middleware-https')

app.use(https('example.com')) // leave out parameter to apply to all domains

app.listen(process.env.PORT || 3000, () => console.log(`Example app running.`))

About

HTTPS redirect middleware.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published