struct Config

Included Modules

Defined in:

config.cr
server.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Class Method Detail

def self.conf #

[View source]
def self.fetch404(site) #

[View source]
def self.load(yaml = File.read("./config.yml")) #

[View source]
def self.parse_env #

[View source]

Instance Method Detail

def bind : Bind #

[View source]
def bind=(bind : Bind) #

[View source]
def geo_db : String #

[View source]
def geo_db=(geo_db : String) #

[View source]
def sites : Hash(String, SiteConfig) #

[View source]
def sites=(sites : Hash(String, SiteConfig)) #

[View source]