Caddy.Config (Caddy v2.1.3)
View SourceConfiguration structure for Caddy reverse proxy server.
Defines the configuration structure and validation functions for Caddy.
Summary
Functions
Convert caddyfile to JSON
Get backup file path
Get configurable base path for caddy files
Get environment file path
Get etc path for configuration files
Get init configuration file path
Get PID file path
Get configurable priv path
Get run path for runtime files
Get saved JSON configuration file path
Get share path (base path)
Get socket file path
Get tmp path for temporary files
Convert config to caddyfile
Validate Caddy binary path
Validate complete configuration
Validate site configuration format
Get XDG config home path
Get XDG data home path
Types
Functions
Convert caddyfile to JSON
@spec backup_json_file() :: Path.t()
Get backup file path
Get configurable base path for caddy files
Get environment file path
Get etc path for configuration files
Get init configuration file path
Get PID file path
Get configurable priv path
Get run path for runtime files
Get saved JSON configuration file path
Get socket file path
Get tmp path for temporary files
Convert config to caddyfile
See System.user_home/0
.
Validate Caddy binary path
Validate complete configuration
@spec validate_site_config(site_config()) :: :ok | {:error, binary()}
Validate site configuration format
Get XDG config home path
Get XDG data home path