1
0
mirror of https://github.com/Eising/kipketer.git synced 2024-05-11 05:55:17 +00:00
Allan Eising e0ff5ca760 First commit
2015-10-27 21:15:36 +01:00

18 lines
465 B
Ruby

require 'rack'
require 'rack/contrib'
require './app'
require 'pdfkit'
use PDFKit::Middleware, :page_size => 'A4', :print_media_type => true, :footer_center => "[page]/[toPage]", :footer_font_size => 10
use Rack::UTF8Sanitizer
use Rack::MailExceptions do |mail|
mail.to 'ale@nianet.dk'
mail.from 'speedtest@hastighedstest.nianetas.local'
mail.subject '[HASTIGHEDSTEST] %s'
mail.smtp ({ :address => 'post.nianet.dk' })
end
run Hastighedstest.new