class Sabo::Tabby::Config
- Sabo::Tabby::Config
- Reference
- Object
Overview
Stores all the configuration options for a Sabo::Tabby application.
It's a singleton and you can access it like:
Sabo::Tabby.config
Defined in:
sabo-tabby/config.crConstant Summary
-
INSTANCE =
Config.new
Constructors
Instance Method Summary
-
#dir_index : Bool
Whether to redirect / to /index.html.
-
#dir_index=(dir_index : Bool)
Whether to redirect / to /index.html.
-
#dir_listing : Bool
Whether to list directory files.
-
#dir_listing=(dir_listing : Bool)
Whether to list directory files.
- #emoji : Bool
- #emoji=(emoji : Bool)
-
#error_page : Bool
Whether to show an HTML error page or a basic text/plain one.
-
#error_page=(error_page : Bool)
Whether to show an HTML error page or a basic text/plain one.
- #gzip : Bool
- #gzip=(gzip : Bool)
- #handlers : Array(HTTP::Handler)
- #host_binding : String
- #host_binding=(host_binding : String)
- #logger : Sabo::Tabby::LogHandler
- #logger_style : LoggerStyle
- #logger_style=(logger_style : LoggerStyle)
- #logging : Bool
- #logging=(logging : Bool)
- #port : Int32
- #port=(port : Int32)
- #public_folder : String
- #public_folder=(public_folder : String)
- #running : Bool
- #running=(running : Bool)
- #scheme : String
-
#serve_hidden : Bool
Whether to server hidden files and folders.
-
#serve_hidden=(serve_hidden : Bool)
Whether to server hidden files and folders.
- #server : HTTP::Server | Nil
- #server=(server : HTTP::Server | Nil)
- #server_header : Bool
- #server_header=(server_header : Bool)
- #setup
- #ssl : OpenSSL::SSL::Context::Server | Nil
- #ssl=(ssl : OpenSSL::SSL::Context::Server | Nil)
-
#theme : Hash(String, ErrorPageTheme | DirectoryListingTheme | Crustache::Syntax::Template)
Hash of themes.
Constructor Detail
Instance Method Detail
Hash of themes.