peterkeen / dokuen

A personal PaaS for mac and linux
548 stars 19 forks source link

Optional http to https forwarding #6

Open peterkeen opened 12 years ago

peterkeen commented 12 years ago

If FORWARD_HTTP and USE_SSL are both set, set up an nginx listener on port 80 that redirects to https.

peterkeen commented 12 years ago

Actually, on second thought, if USE_SSL is set always set up the redirect. Every instance I can think of where you want SSL you want it for all pages on the server, and lack of redirect is a pain in the butt.