class Azu::Configuration
- Azu::Configuration
- Reference
- Object
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.crInstance Method Summary
- #env : Environment
- #env=(env : Environment)
- #host : String
- #host=(host : String)
- #log : Log
- #log=(log : Log)
- #port : Int32
- #port=(port : Int32)
- #port_reuse : Bool
- #port_reuse=(port_reuse : Bool)
- #router : Router
- #ssl_ca : String
- #ssl_ca=(ssl_ca : String)
- #ssl_cert : String
- #ssl_cert=(ssl_cert : String)
- #ssl_key : String
- #ssl_key=(ssl_key : String)
- #ssl_mode : String
- #ssl_mode=(ssl_mode : String)
- #templates : Templates
- #tls
- #tls?