I am using Mojolicious for a web app that requires an encrypted connection, but I don't know how to add SSL support to Mojolicious.
My coworker sent me these: files domain.key, domain-bundle.crt, domain.crt
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 having to use a reverse-proxy
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']
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With