blob: 5a7c635535212698c964959e858429b7724b4fce [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
Akron754dae52017-09-28 14:54:28 +020025
26# The default Kustvakt api endpoint
27my $api = 'http://localhost:9999/api/';
Nils Diewald5d1ffb42014-05-21 17:45:34 +000028{
Nils Diewalddd2d4e82014-05-31 17:08:33 +000029 Search => {
Nils Diewald2fe12e12015-03-06 16:47:06 +000030 engine => 'Kalamar::API',
Akron40cc1d82017-05-10 17:58:16 +020031 # Kustvakt server:
Akron3cd391e2017-03-29 23:42:54 +020032 api => $ENV{'KALAMAR_API'} // $api
Akrone8235be2016-06-27 11:02:18 +020033 },
34 Kalamar => {
Akron754dae52017-09-28 14:54:28 +020035 # Kustvakt server:
Akron7d75ee32017-05-02 13:42:41 +020036 api => $ENV{'KALAMAR_API'} // $api,
Akron754dae52017-09-28 14:54:28 +020037
38 # In case, the user management of Kustvakt
39 # is used, make this a true value
Akrona7cfd902017-12-21 19:28:36 +010040 auth_support => 0,
41
42 # The name of the base corpus,
43 # for query examples (see kalamar.queries.dict)
Akrondbb448c2018-02-14 17:02:36 +010044 # examplecorpus => 'dereko'
Nils Diewald2329e1d2014-06-12 16:07:57 +000045 },
Akron754dae52017-09-28 14:54:28 +020046
47 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020048 'TagHelpers-MailToChiffre' => {
49 method_name => 'PArok',
50 pattern_rotate => 673
51 },
Akron754dae52017-09-28 14:54:28 +020052
53 # See Mojolicious::Plugin::CHI
Nils Diewald2329e1d2014-06-12 16:07:57 +000054 CHI => {
55 default => {
56 driver => 'FastMmap',
Nils Diewald94bae912014-09-22 13:40:31 +000057 root_dir => app->home . '/cache/data',
Akrondadacf12016-01-22 19:24:59 +010058 cache_size => '100m',
59 max_size => '100m'
60 },
61 user => {
62 l1_cache => {
Akron3cd391e2017-03-29 23:42:54 +020063 driver => 'FastMmap',
64 root_dir => app->home . '/cache/usermap',
65 cache_size => '50m',
66 max_size => '50m'
Akrondadacf12016-01-22 19:24:59 +010067 },
68 driver => 'File',
69 root_dir => app->home . '/cache/userfile',
70 max_key_length => 64,
71 max_size => '500m'
Nils Diewald2329e1d2014-06-12 16:07:57 +000072 }
Nils Diewald5d1ffb42014-05-21 17:45:34 +000073 }
74}