Caddy.Server (Caddy v2.0.7)

View Source

Caddy Server

Start Caddy Server in Port and GenServer to handle the server process. Server outputs are save to Caddy.Logger process.

Won'nt start if Caddy binary not found or not executable.

Could be started by Caddy.restart_server() when Caddy binary is set.

Summary

Functions

Returns a specification to start this module under a supervisor.

Get Caddyfile content of the current running server

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_caddyfile()

@spec get_caddyfile() :: binary()

Get Caddyfile content of the current running server

start_link(_)