class Lucky::Server

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

Defined in:

lucky/server.cr

Constant 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

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?

Class Method Detail

def self.configure(&) #

[View source]
def self.settings #

[View source]

Instance Method Detail

def settings #

[View source]