blob: e194d0a88c154131a624d571e0db3b775a09629d [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
Akrondffa9392018-10-12 16:26:09 +020027# - CHI
28# See Mojolicious::Plugin::CHI
Akron754dae52017-09-28 14:54:28 +020029
30# The default Kustvakt api endpoint
31my $api = 'http://localhost:9999/api/';
Nils Diewald5d1ffb42014-05-21 17:45:34 +000032{
Nils Diewalddd2d4e82014-05-31 17:08:33 +000033 Search => {
Akronc7656e92018-08-30 13:33:25 +020034 engine => 'Kalamar::API'
Akrone8235be2016-06-27 11:02:18 +020035 },
36 Kalamar => {
Akronc7656e92018-08-30 13:33:25 +020037 # Backend server path
38 api_path => $ENV{'KALAMAR_API'} // $api,
39
40 # Backend API version
41 # api_version => '1.0',
Akron754dae52017-09-28 14:54:28 +020042
43 # In case, the user management of Kustvakt
44 # is used, make this a true value
Akrona7cfd902017-12-21 19:28:36 +010045 auth_support => 0,
46
47 # The name of the base corpus,
48 # for query examples (see kalamar.queries.dict)
Akrondbb448c2018-02-14 17:02:36 +010049 # examplecorpus => 'dereko'
Nils Diewald2329e1d2014-06-12 16:07:57 +000050 },
Akron754dae52017-09-28 14:54:28 +020051
52 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020053 'TagHelpers-MailToChiffre' => {
54 method_name => 'PArok',
55 pattern_rotate => 673
56 },
Akron754dae52017-09-28 14:54:28 +020057
Akron51757cb2018-05-16 13:10:08 +020058 # See Mojolicious::Plugin::Piwik
59 Piwik => {
Akronb59accd2018-05-16 13:27:08 +020060 embed => 0
Nils Diewald5d1ffb42014-05-21 17:45:34 +000061 }
62}