Disable ssl when -D without_openssl is given

This commit is contained in:
maiha 2016-09-16 23:30:36 +09:00
parent 2ff5991c92
commit b2e81e6bc1
3 changed files with 8 additions and 0 deletions

View file

@ -12,7 +12,9 @@ module Kemal
config.add_handler Kemal::RouteHandler::INSTANCE
config.server = HTTP::Server.new(config.host_binding, config.port, config.handlers)
{% if ! flag?(:without_openssl) %}
config.server.tls = config.ssl
{% end %}
Kemal::Sessions.run_reaper!