class Azu::Configuration

Overview

Holds all the configuration properties for your Azu Application

Azu expects configurations to be loaded from environment variables for local development it is recommended to use .env files to store your development configuration properties.

Azu.configure do |c|
  c.port = 4000
  c.host = localhost
  c.port_reuse = true
  c.log = Log.for("My Awesome App")
  c.env = Environment::Development
  c.template.path = "./templates"
  c.template.error_path = "./error_template"
end

Defined in:

azu/configuration.cr

Instance Method Summary

Instance Method Detail

def env : Environment #

[View source]
def env=(env : Environment) #

[View source]
def host : String #

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

[View source]
def log : Log #

[View source]
def log=(log : Log) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]
def port_reuse : Bool #

[View source]
def port_reuse=(port_reuse : Bool) #

[View source]
def router : Router #

[View source]
def ssl_ca : String #

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

[View source]
def ssl_cert : String #

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

[View source]
def ssl_key : String #

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

[View source]
def ssl_mode : String #

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

[View source]
def templates : Templates #

[View source]
def tls #

[View source]
def tls? #

[View source]