blob: 700576a012b980c18e3e698f9ab0f7d999e6c673 [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
Nils Diewald5d1ffb42014-05-21 17:45:34 +000059 }
60}