Mooty by HTTPS

I use Mojolicious for a web application that requires an encrypted connection, but I do not know how to add SSL support to Mojolicious.

My colleague sent me the following: domain.key, domain-bundle.crt, domain.crt files

and my Mojolicious startup looks like this:

sub startup { my $self = shift; $self->secrets(['secretphrase']); $self->config(hypnotoad => {listen => ['http://*:80']}); 

How can I add HTTPS support without using a reverse proxy

+6
source share
1 answer

Found how to do it:

 sub startup { my $self = shift; $self->secrets(['secretphrase']); $self->config(hypnotoad => {listen => ['https://*:443?cert=/etc/tls/domain.crt&key=/etc/tls/domain.key']}); 
+5
source

All Articles