[dancer-users] Dancer2 and HTTPS
breno
garu at cpan.org
Fri Jan 16 19:30:34 GMT 2015
Hi there,
Usually, when you deploy your app, you use some sort of proxy in front of
it (like Apache or nginx), and such proxy is the one responsible for HTTPS.
If you want to serve HTTPS directly from your perl web server (such as
Starman) all it takes is pass the appropriate functions to either "starman"
or "start_server", for example:
starman --enable-ssl --ssl-key=/path/to/key.pem
--ssl-cert=/path/to/cert.pem --workers=10 bin/my_app.pl
And the server will start with HTTPS - no need to change a single line in
your Dancer app :)
Cheers,
garu
On Fri, Jan 16, 2015 at 4:24 PM, Attila Bardi <attila.bardi at gmail.com>
wrote:
> Hey John,
>
> I use apache as a frontend for the perl dancer. The perl dancer listen on
> the localhost port 3000 and the apache handle the ssl part and redirect the
> requests to the dancer app.
>
> Best regards,
> --
> Attila Bardi
>
>
>
> On 16 Jan 2015, at 18:32, dancer.to.davies at spamgourmet.com wrote:
>
> I am trying to teach myself web programming with Dancer2. I have an
> application in mind that would be (I think) better with as much security as
> I can arrange, to which end I am trying to understand HTTPS. I would have
> expected this to be a common thing to want, but the only docs I can find
> are
> http://stackoverflow.com/questions/22974113/how-do-i-setup-my-server-with-https-and-perl-dancer-as-a-standalone-server
> and the links given there. Unfortunately. this seems to refer to Dancer1
> rather than Dancer2 and Dancer::Plugin::RequireSSL seems to be redirection
> only rather than something that generates a secure web page. Can Dancer2
> create secure web pages? If not, are there any plans for this? Where I have
> written about how things "seem", have I understood correctly? Are there any
> docs that might help me?
>
> TIA & regards,
>
> John Davies
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150116/68ed003c/attachment.html>
More information about the dancer-users
mailing list