123456789101112131415161718192021222324252627 |
- # frozen_string_literal: true
- # sharable_constant_value: litera
- require 'bundler'
- Bundler.require
- require 'rack/protection'
- require 'rack-timeout'
- require 'sinatra'
- require_relative 'app/bgplookup'
- require_relative 'lib/config/config'
- $Config = Config.from_file('config.json')
- $DB = $Config.db
- $Logger = $Config.logger
- Rack::Timeout::Logger.disable
- use Rack::Timeout, service_timeout: 30
- use Rack::Protection, except: :session_hijacking
- require_relative 'lib/readers/helper'
- $Readers = Readers.create_readers $DB
- run BgpLookup
|