blob: 4d4e94e3ac77ddc145e6198dea85272daf97e31e [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
Akron4c33c622018-11-12 13:43:27 +010030# For Plugins,
31# - Piwik
32# See Mojolicious::Plugin::Piwik
33
Akron754dae52017-09-28 14:54:28 +020034# The default Kustvakt api endpoint
35my $api = 'http://localhost:9999/api/';
Nils Diewald5d1ffb42014-05-21 17:45:34 +000036{
Nils Diewalddd2d4e82014-05-31 17:08:33 +000037 Search => {
Akronc7656e92018-08-30 13:33:25 +020038 engine => 'Kalamar::API'
Akrone8235be2016-06-27 11:02:18 +020039 },
40 Kalamar => {
Akronc7656e92018-08-30 13:33:25 +020041 # Backend server path
42 api_path => $ENV{'KALAMAR_API'} // $api,
43
44 # Backend API version
45 # api_version => '1.0',
Akron754dae52017-09-28 14:54:28 +020046
47 # In case, the user management of Kustvakt
48 # is used, make this a true value
Akrona7cfd902017-12-21 19:28:36 +010049 auth_support => 0,
50
51 # The name of the base corpus,
52 # for query examples (see kalamar.queries.dict)
Akrondbb448c2018-02-14 17:02:36 +010053 # examplecorpus => 'dereko'
Akron4c33c622018-11-12 13:43:27 +010054
55 # For further Plugins, add them
56 # to this array:
57 # plugins => []
Nils Diewald2329e1d2014-06-12 16:07:57 +000058 },
Akron754dae52017-09-28 14:54:28 +020059
60 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020061 'TagHelpers-MailToChiffre' => {
62 method_name => 'PArok',
63 pattern_rotate => 673
Nils Diewald5d1ffb42014-05-21 17:45:34 +000064 }
65}