class Lucky::Server
- Lucky::Server
- Reference
- Object
Overview
Class for configuring server settings
The settings created here can be customized in each Lucky app by modifying them in your config/server.cr
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
lucky/server.crConstant Summary
-
HABITAT_SETTINGS =
[{decl: secret_key_base : String, example: nil, validation: nil}, {decl: host : String, example: nil, validation: nil}, {decl: port : Int32, example: nil, validation: nil}, {decl: asset_host : String = "", example: nil, validation: nil}, {decl: gzip_enabled : Bool = false, example: nil, validation: nil}, {decl: gzip_content_types : Array(String) = ["application/json", "application/javascript", "application/xml", "font/otf", "font/ttf", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/csv", "text/html", "text/javascript", "text/plain"] of ::String, example: nil, validation: nil}] of Nil