Sha256: a56cb5e5769fd7a2a6271b19a81707ff63b96ccfd0f3f1a4b3a350a92b9663bc

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

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

  set :logger, ::Logger.new(STDOUT)
  set :protocol, :http
  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
midori.rb-0.5.4 lib/midori/configure.rb
midori.rb-0.5.3.1 lib/midori/configure.rb
midori.rb-0.5.3 lib/midori/configure.rb
midori.rb-0.5.2 lib/midori/configure.rb
midori.rb-0.5.1 lib/midori/configure.rb