mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Disable ssl when -D without_openssl
is given
This commit is contained in:
parent
2ff5991c92
commit
b2e81e6bc1
3 changed files with 8 additions and 0 deletions
|
@ -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!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue