I've upgraded my development server to 2.18. Right now I'm trying to use the first option, serving WeBWorK directly using Hypnotoad.
I have existing SSL certificates that were issued for the Apache configuration in 2.17. The files consist of a ServerCertificate.crt, ChainBundle2.crt, and the key file.
I think I've set up SSL according to the instructions, but once I restart the webwork2 service and visit the website, I get a "site unexpectedly closed the connection" error. Do I need different certificates to serve using hypnotoad with SSL? If so, I'll proxy through Apache for now.
In my webwork2.mojolicious.yml I have the following, and I've got https in site.conf.
redirect_http_to_https: 1
# hypnotoad server configuration
# See https://docs.mojolicious.org/Mojo/Server/Daemon
# Any of the attributes listed there can be set in this section.
# Make sure to convert the Perl notation there to YAML.
hypnotoad:
listen:
- http://*:80
# Below is an example of how to use ssl certificates when serving directly via hypnotoad.
- https://*:443?cert=/etc/ssl/certs/ServerCertificate.crt&key=/etc/ssl/webwork-dev.key
# Below is an example of how to use ssl certificates when using the docker build.
#- https://*:8080?cert=/etc/ssl/local/fullchain.pem&key=/etc/ssl/local/privkey.pem