mighttpd2-3.2.4: High performance web server on WAI/warp

Safe HaskellSafe-Inferred

Program.Mighty.Config

Contents

Synopsis

Parsing a configuration file.

parseOption :: FilePath -> String -> IO OptionSource

Parsing a configuration file to get an Option.

Creating Option.

defaultOptionSource

Arguments

:: String

A default server name (e.g. "Mighttpd/3.0.0")

-> Option 

Getting a default Option.

Types

data Option Source

Constructors

Option 

Fields

opt_port :: !Int
 
opt_host :: !String
 
opt_debug_mode :: !Bool
 
opt_user :: !String
 
opt_group :: !String
 
opt_pid_file :: !FilePath
 
opt_logging :: !Bool
 
opt_log_file :: !FilePath
 
opt_log_file_size :: !Int
 
opt_log_backup_number :: !Int
 
opt_index_file :: !FilePath
 
opt_index_cgi :: !FilePath
 
opt_status_file_dir :: !FilePath
 
opt_connection_timeout :: !Int
 
opt_proxy_timeout :: !Int
 
opt_fd_cache_duration :: !Int
 
opt_server_name :: !String
 
opt_routing_file :: !(Maybe FilePath)
 
opt_tls_port :: !Int
 
opt_tls_cert_file :: !FilePath
 
opt_tls_key_file :: !FilePath
 
opt_service :: !Int
 
opt_report_file :: !FilePath
 

Instances

Eq Option 
Show Option