struct WebSite::Caddy

Overview

Limited Caddyfile parser/builder

Included Modules

Defined in:

web_site/caddy.cr

Constructors

Instance Method Summary

Instance methods inherited from module WebSite::Site

fastcgi : URI? fastcgi, fastcgi=(fastcgi : URI?) fastcgi=, file : Path file, file=(file : Path) file=, gzip : Bool gzip, gzip=(gzip : Bool) gzip=, headers : Hash(String, String) headers, headers=(headers : Hash(String, String)) headers=, hosts : Array(URI) hosts, hosts=(hosts : Array(URI)) hosts=, log_file_error : Path? log_file_error, log_file_error=(log_file_error : Path?) log_file_error=, log_file_output : Path? log_file_output, log_file_output=(log_file_output : Path?) log_file_output=, proxy : URI? proxy, proxy=(proxy : URI?) proxy=, root : Path? root, root=(root : Path?) root=

Constructor Detail

def self.new(file : Path) #

Parses a Caddyfile from a path.

ameba:disable Metrics/CyclomaticComplexity


[View source]

Instance Method Detail

def write #

Writes to the Caddyfile path.


[View source]