blob: 96df587ed9491e5f90a7253a3fbb17c57c720a2a [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#
8# To load the configuration, start your applikation with
9# the environment variable
10#
11# MOJO_MODE=[MYNAME]
12#
13# Further typical configurations in this file include
14#
15# - hypnotoad
16# See Mojo::Server::Hypnotoad
17# - MailException
18# See Mojolicious::Plugin::MailException
19# - TagHelpers-Pagination
20# See Mojolicious::Plugin::TagHelpers::Pagination
21# - Search
22# See Mojolicious::Plugin::Search
23#
24
25# The default Kustvakt api endpoint
26my $api = 'http://localhost:9999/api/';
Nils Diewald5d1ffb42014-05-21 17:45:34 +000027{
Nils Diewalddd2d4e82014-05-31 17:08:33 +000028 Search => {
Nils Diewald2fe12e12015-03-06 16:47:06 +000029 engine => 'Kalamar::API',
Akron40cc1d82017-05-10 17:58:16 +020030 # Kustvakt server:
Akron3cd391e2017-03-29 23:42:54 +020031 api => $ENV{'KALAMAR_API'} // $api
Akrone8235be2016-06-27 11:02:18 +020032 },
33 Kalamar => {
Akron754dae52017-09-28 14:54:28 +020034 # Kustvakt server:
Akron7d75ee32017-05-02 13:42:41 +020035 api => $ENV{'KALAMAR_API'} // $api,
Akron754dae52017-09-28 14:54:28 +020036
37 # In case, the user management of Kustvakt
38 # is used, make this a true value
Akron625fe0c2017-05-03 16:15:08 +020039 auth_support => 0
Nils Diewald2329e1d2014-06-12 16:07:57 +000040 },
Akron754dae52017-09-28 14:54:28 +020041
42 # See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akron40cc1d82017-05-10 17:58:16 +020043 'TagHelpers-MailToChiffre' => {
44 method_name => 'PArok',
45 pattern_rotate => 673
46 },
Akron754dae52017-09-28 14:54:28 +020047
48 # See Mojolicious::Plugin::CHI
Nils Diewald2329e1d2014-06-12 16:07:57 +000049 CHI => {
50 default => {
51 driver => 'FastMmap',
Nils Diewald94bae912014-09-22 13:40:31 +000052 root_dir => app->home . '/cache/data',
Akrondadacf12016-01-22 19:24:59 +010053 cache_size => '100m',
54 max_size => '100m'
55 },
56 user => {
57 l1_cache => {
Akron3cd391e2017-03-29 23:42:54 +020058 driver => 'FastMmap',
59 root_dir => app->home . '/cache/usermap',
60 cache_size => '50m',
61 max_size => '50m'
Akrondadacf12016-01-22 19:24:59 +010062 },
63 driver => 'File',
64 root_dir => app->home . '/cache/userfile',
65 max_key_length => 64,
66 max_size => '500m'
Nils Diewald2329e1d2014-06-12 16:07:57 +000067 }
Nils Diewald5d1ffb42014-05-21 17:45:34 +000068 }
69}