toro v0.4.1 Release Notes
Release Date: 2018-07-02 // about 6 years ago-
No data yet ๐
You can check the official repo
Previous changes from v0.4.0
-
If
App
is an instance ofToro
, then you can start the server
by callingApp.run
. You can pass any options you would use with
theHTTP::Server
constructor from the standard library.For example, you can start the server on port 80:
App.run(80)
๐ง Or you can further configure server by using a block. The following
๐ง example shows how to configure SSL certificates:App.run(443) do |server| ssl = OpenSSL::SSL::Context::Server.new ssl.private\_key = "path/to/private\_key" ssl.certificate\_chain = "path/to/certificate\_chain" server.tls = sslend
๐ Refer to Crystal's documentation for more options.