blob: ada47bb12326f93c0bd2e1f5655188ef9bdd6333 [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 => {
Nils Diewald2fe12e12015-03-06 16:47:06 +000032 engine => 'Kalamar::API',
Akron40cc1d82017-05-10 17:58:16 +020033 # Kustvakt server:
Akron3cd391e2017-03-29 23:42:54 +020034 api => $ENV{'KALAMAR_API'} // $api
Akrone8235be2016-06-27 11:02:18 +020035 },
36 Kalamar => {
Akron754dae52017-09-28 14:54:28 +020037 # Kustvakt server:
Akron7d75ee32017-05-02 13:42:41 +020038 api => $ENV{'KALAMAR_API'} // $api,
Akron754dae52017-09-28 14:54:28 +020039
40 # In case, the user management of Kustvakt
41 # is used, make this a true value
Akrona7cfd902017-12-21 19:28:36 +010042 auth_support => 0,
43
44 # The name of the base corpus,
45 # for query examples (see kalamar.queries.dict)
Akrondbb448c2018-02-14 17:02:36 +010046 # examplecorpus => 'dereko'
Nils Diewald2329e1d2014-06-12 16:07:57 +000047 },
Akron754dae52017-09-28 14:54:28 +020048
49 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020050 'TagHelpers-MailToChiffre' => {
51 method_name => 'PArok',
52 pattern_rotate => 673
53 },
Akron754dae52017-09-28 14:54:28 +020054
Akron51757cb2018-05-16 13:10:08 +020055 # See Mojolicious::Plugin::Piwik
56 Piwik => {
Akronb59accd2018-05-16 13:27:08 +020057 embed => 0
Akron51757cb2018-05-16 13:10:08 +020058 },
59
Akron754dae52017-09-28 14:54:28 +020060 # See Mojolicious::Plugin::CHI
Nils Diewald2329e1d2014-06-12 16:07:57 +000061 CHI => {
62 default => {
63 driver => 'FastMmap',
Nils Diewald94bae912014-09-22 13:40:31 +000064 root_dir => app->home . '/cache/data',
Akrondadacf12016-01-22 19:24:59 +010065 cache_size => '100m',
66 max_size => '100m'
67 },
68 user => {
69 l1_cache => {
Akron3cd391e2017-03-29 23:42:54 +020070 driver => 'FastMmap',
71 root_dir => app->home . '/cache/usermap',
72 cache_size => '50m',
73 max_size => '50m'
Akrondadacf12016-01-22 19:24:59 +010074 },
75 driver => 'File',
76 root_dir => app->home . '/cache/userfile',
77 max_key_length => 64,
78 max_size => '500m'
Nils Diewald2329e1d2014-06-12 16:07:57 +000079 }
Nils Diewald5d1ffb42014-05-21 17:45:34 +000080 }
81}