This repository has been archived on 2025-11-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
tonton-web/config.ru

22 lines
No EOL
535 B
Ruby

require_relative 'tonton_web'
require_relative 'modules/tonton-gollum/app'
use Rack::Session::Cookie, key: 'rack.session', secret: ENV.fetch('SESSION_SECRET')
wiki_options = {
universal_toc: false,
math: :mathjax,
css: true,
template_dir: 'modules/tonton-gollum/templates'
}
Precious::App.set(:gollum_path, 'modules/tonton-gollum/wiki')
Precious::App.set(:default_markup, :markdown)
Precious::App.set(:wiki_options, wiki_options)
app = Rack::URLMap.new(
'/' => TonTonWeb.new,
'/wiki' => TonTonWeb::Wiki.new('wiki')
)
run app