mirror of
https://github.com/Eising/kipketer.git
synced 2024-05-11 05:55:17 +00:00
18 lines
465 B
Ruby
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
|
|
|