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_hot_reload = true
c.template.path = "./templates"
c.template.error_path = "./error_template"
c.upload.max_file_size = 10.megabytes
c.upload.temp_dir = "/tmp/uploads"
c.cache.enabled = true
c.cache.store = "memory"
c.cache.max_size = 1000
end
Defined in:
azu/configuration.crConstructors
Class Method Summary
Instance Method Summary
-
#cache : Cache::Manager
Cache configuration and manager
-
#cache_config : Cache::Configuration
Separate cache configuration object for advanced customization
-
#development_tools
Development tools access
- #env : Environment
- #env=(env : Environment)
- #finalize
- #host : String
- #host=(host : String)
- #log : Log
- #log=(log : Log)
-
#performance_enabled=(performance_enabled : Bool)
Performance monitoring configuration - defaults to false for truly optional behavior
-
#performance_enabled? : Bool
Performance monitoring configuration - defaults to false for truly optional behavior
- #performance_memory_monitoring=(performance_memory_monitoring : Bool)
- #performance_memory_monitoring? : Bool
- #performance_monitor : Nil
- #performance_monitor=(monitor)
- #performance_profiling_enabled=(performance_profiling_enabled : Bool)
- #performance_profiling_enabled? : Bool
- #port : Int32
- #port=(port : Int32)
- #port_reuse=(port_reuse : Bool)
- #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)
- #template_hot_reload=(template_hot_reload : Bool)
- #template_hot_reload? : Bool
- #templates : Templates
- #tls
- #tls?
- #upload : UploadConfiguration
Constructor Detail
Class Method Detail
Instance Method Detail
Separate cache configuration object for advanced customization
Performance monitoring configuration - defaults to false for truly optional behavior
Performance monitoring configuration - defaults to false for truly optional behavior