ace_http v0.5.0 Ace.HTTPS

Securely serve a web application from an HTTPS endpoint.

To start an endpoint use start_link/2.

Compatible web applications are defined using the Raxx specification, see documentation for details.

Link to this section Summary

Functions

Fetch the port number of a running endpoint

Start a secure HTTPS web application

Link to this section Functions

Fetch the port number of a running endpoint.

Link to this function start_link(raxx_application, options \\ [])

Start a secure HTTPS web application.

{:ok, pid} = Ace.HTTPS.start_link(my_app, [
  certificate: Application.app_dir(:www, "priv/certificate.pem"),
  certificate_key: Application.app_dir(:www, "priv/key.pem")
])

A Raxx application is a tuple combining a behaviour module and configuration. e.g.

my_app = {MyApp, %{config: :my_config}}

Options

Options are the same as Ace.TLS.