Sha256: e3b630e32d1048d4ea383908fddf335c4fa0ec953321e7e3ebd1f4dda2e071a9

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

##
# Default configuration of Midori, extends +Configurable+
class Midori::Configure
  extend Configurable

  set :logger, ::Logger.new(STDOUT)
  set :bind, '127.0.0.1'
  set :port, 8080
  set :route_type, :sinatra
  set :before, proc {}
  set :proxy, false
  set :trust_real_ip, false
  set :trusted_proxies, /\A127\.0\.0\.1\Z|\A(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.|
                         \A::1\Z|\Afd[0-9a-f]{2}:.+|\Alocalhost\Z|\Aunix\Z|\Aunix:/ix
  set :tcp_fast_open, true
  set :socket_reuse_port, false
  set :keep_alive, true
  set :keep_alive_timeout, 75
  set :keep_alive_requests, 1000
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
midori.rb-0.9.0 lib/midori/configure.rb
midori.rb-0.8.0 lib/midori/configure.rb
midori.rb-0.7.1 lib/midori/configure.rb
midori.rb-0.7.0 lib/midori/configure.rb