nickel-org / nickel.rs

An expressjs inspired web framework for Rust

Home Page:http://nickel-org.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Develop SSL Strategy/Story

jolhoeft opened this issue · comments

We inadvertently disabled SSL support in the upgrade to hyper 0.10 (sadly, no one noticed). Hyper 0.11 does not have native SSL support.

Hi! Is there a way to use https in a Nickel server now? I just finished a web app that uses Nickel and was about to make it use https but no luck with the examples and yeah, hyper::net::Openssl is gone. Thank you!

My current approach is to use Apache for https. Apache redirects to a localhost only port where my nickel app is listening.

We definitely want https support in Nickel, but that will probably be added back after the migration to hyper-0.11.x is complete, and hyper's approach to https has settled down a bit.

Okay, I ended up doing the same thing using nginx. Thank you!

commented

A temp solution could be to use a free caching service like cloudflare and use them for the tls?

Nah, thanks, nginx work fine :)