blob: fc6a94c437db154a1b6c9f66b8a494b542b7d118 [file] [log] [blame]
Akron754dae52017-09-28 14:54:28 +02001# This is the base configuration file for Kalamar.
2# Further configurations can override these values.
3# To define a new configuration, create a file in the
4# root folder of your application with the name like
5#
6# kalamar.[MYNAME].conf
7#
Akrondbb448c2018-02-14 17:02:36 +01008# To load the configuration, start your application with
Akron754dae52017-09-28 14:54:28 +02009# the environment variable
10#
11# MOJO_MODE=[MYNAME]
12#
13# Further typical configurations in this file include
14#
15# - hypnotoad
Akrondbb448c2018-02-14 17:02:36 +010016# See Mojo::Server::Hypnotoad
Akron754dae52017-09-28 14:54:28 +020017# - MailException
Akrondbb448c2018-02-14 17:02:36 +010018# See Mojolicious::Plugin::MailException
Akron754dae52017-09-28 14:54:28 +020019# - TagHelpers-Pagination
Akrondbb448c2018-02-14 17:02:36 +010020# See Mojolicious::Plugin::TagHelpers::Pagination
Akron754dae52017-09-28 14:54:28 +020021# - Search
Akrondbb448c2018-02-14 17:02:36 +010022# See Mojolicious::Plugin::Search
23# - Localize
24# See Mojolicious::Plugin::Localize
Akronafeca252018-05-23 15:54:28 +020025# - TagHelpers-ContentBlock
26# See Mojolicious::Plugin::TagHelpers::ContentBlock
Akron754dae52017-09-28 14:54:28 +020027
28# The default Kustvakt api endpoint
29my $api = 'http://localhost:9999/api/';
Nils Diewald5d1ffb42014-05-21 17:45:34 +000030{
Nils Diewalddd2d4e82014-05-31 17:08:33 +000031 Search => {
Akronc7656e92018-08-30 13:33:25 +020032 engine => 'Kalamar::API'
Akrone8235be2016-06-27 11:02:18 +020033 },
34 Kalamar => {
Akronc7656e92018-08-30 13:33:25 +020035 # Backend server path
36 api_path => $ENV{'KALAMAR_API'} // $api,
37
38 # Backend API version
39 # api_version => '1.0',
Akron754dae52017-09-28 14:54:28 +020040
41 # In case, the user management of Kustvakt
42 # is used, make this a true value
Akrona7cfd902017-12-21 19:28:36 +010043 auth_support => 0,
44
45 # The name of the base corpus,
46 # for query examples (see kalamar.queries.dict)
Akrondbb448c2018-02-14 17:02:36 +010047 # examplecorpus => 'dereko'
Nils Diewald2329e1d2014-06-12 16:07:57 +000048 },
Akron754dae52017-09-28 14:54:28 +020049
50 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020051 'TagHelpers-MailToChiffre' => {
52 method_name => 'PArok',
53 pattern_rotate => 673
54 },
Akron754dae52017-09-28 14:54:28 +020055
Akron51757cb2018-05-16 13:10:08 +020056 # See Mojolicious::Plugin::Piwik
57 Piwik => {
Akronb59accd2018-05-16 13:27:08 +020058 embed => 0
Akron51757cb2018-05-16 13:10:08 +020059 },
60
Akron754dae52017-09-28 14:54:28 +020061 # See Mojolicious::Plugin::CHI
Nils Diewald2329e1d2014-06-12 16:07:57 +000062 CHI => {
63 default => {
64 driver => 'FastMmap',
Nils Diewald94bae912014-09-22 13:40:31 +000065 root_dir => app->home . '/cache/data',
Akrondadacf12016-01-22 19:24:59 +010066 cache_size => '100m',
67 max_size => '100m'
68 },
69 user => {
70 l1_cache => {
Akron3cd391e2017-03-29 23:42:54 +020071 driver => 'FastMmap',
72 root_dir => app->home . '/cache/usermap',
73 cache_size => '50m',
74 max_size => '50m'
Akrondadacf12016-01-22 19:24:59 +010075 },
76 driver => 'File',
77 root_dir => app->home . '/cache/userfile',
78 max_key_length => 64,
79 max_size => '500m'
Nils Diewald2329e1d2014-06-12 16:07:57 +000080 }
Nils Diewald5d1ffb42014-05-21 17:45:34 +000081 }
82}