<div dir="ltr"><div>Hi there,<br><br></div><div>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:<br><br></div><div>starman --enable-ssl --ssl-key=/path/to/key.pem --ssl-cert=/path/to/cert.pem --workers=10 bin/<a href="http://my_app.pl">my_app.pl</a><br><br></div><div>And the server will start with HTTPS - no need to change a single line in your Dancer app :)<br></div><div><br></div><div>Cheers,<br><br></div><div>garu<br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 16, 2015 at 4:24 PM, Attila Bardi <span dir="ltr"><<a href="mailto:attila.bardi@gmail.com" target="_blank">attila.bardi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hey John,<div><br></div><div>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.<br><div><br></div><div>
Best regards,<br><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">--</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">Attila Bardi</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On 16 Jan 2015, at 18:32, <a href="mailto:dancer.to.davies@spamgourmet.com" target="_blank">dancer.to.davies@spamgourmet.com</a> wrote:</div><br><div>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 <a href="http://stackoverflow.com/questions/22974113/how-do-i-setup-my-server-with-https-and-perl-dancer-as-a-standalone-server" target="_blank">http://stackoverflow.com/questions/22974113/how-do-i-setup-my-server-with-https-and-perl-dancer-as-a-standalone-server</a> 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?<br><br>TIA & regards,<br><br>John Davies<br><br>_______________________________________________<br>dancer-users mailing list<br><a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br><a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div></div>