Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 1 | # 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 | # |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 8 | # To load the configuration, start your application with |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 9 | # the environment variable |
| 10 | # |
| 11 | # MOJO_MODE=[MYNAME] |
| 12 | # |
| 13 | # Further typical configurations in this file include |
| 14 | # |
| 15 | # - hypnotoad |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 16 | # See Mojo::Server::Hypnotoad |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 17 | # - MailException |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 18 | # See Mojolicious::Plugin::MailException |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 19 | # - TagHelpers-Pagination |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 20 | # See Mojolicious::Plugin::TagHelpers::Pagination |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 21 | # - Search |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 22 | # See Mojolicious::Plugin::Search |
| 23 | # - Localize |
| 24 | # See Mojolicious::Plugin::Localize |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 25 | # - TagHelpers-ContentBlock |
| 26 | # See Mojolicious::Plugin::TagHelpers::ContentBlock |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 27 | |
| 28 | # The default Kustvakt api endpoint |
| 29 | my $api = 'http://localhost:9999/api/'; |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 30 | { |
Nils Diewald | dd2d4e8 | 2014-05-31 17:08:33 +0000 | [diff] [blame] | 31 | Search => { |
Akron | c7656e9 | 2018-08-30 13:33:25 +0200 | [diff] [blame] | 32 | engine => 'Kalamar::API' |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 33 | }, |
| 34 | Kalamar => { |
Akron | c7656e9 | 2018-08-30 13:33:25 +0200 | [diff] [blame] | 35 | # Backend server path |
| 36 | api_path => $ENV{'KALAMAR_API'} // $api, |
| 37 | |
| 38 | # Backend API version |
| 39 | # api_version => '1.0', |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 40 | |
| 41 | # In case, the user management of Kustvakt |
| 42 | # is used, make this a true value |
Akron | a7cfd90 | 2017-12-21 19:28:36 +0100 | [diff] [blame] | 43 | auth_support => 0, |
| 44 | |
| 45 | # The name of the base corpus, |
| 46 | # for query examples (see kalamar.queries.dict) |
Akron | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 47 | # examplecorpus => 'dereko' |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 48 | }, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 49 | |
| 50 | # See Mojolicious::Plugin::TagHelpers::MailToChiffre |
Akron | 40cc1d8 | 2017-05-10 17:58:16 +0200 | [diff] [blame] | 51 | 'TagHelpers-MailToChiffre' => { |
| 52 | method_name => 'PArok', |
| 53 | pattern_rotate => 673 |
| 54 | }, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 55 | |
Akron | 51757cb | 2018-05-16 13:10:08 +0200 | [diff] [blame] | 56 | # See Mojolicious::Plugin::Piwik |
| 57 | Piwik => { |
Akron | b59accd | 2018-05-16 13:27:08 +0200 | [diff] [blame] | 58 | embed => 0 |
Akron | 51757cb | 2018-05-16 13:10:08 +0200 | [diff] [blame] | 59 | }, |
| 60 | |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 61 | # See Mojolicious::Plugin::CHI |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 62 | CHI => { |
| 63 | default => { |
| 64 | driver => 'FastMmap', |
Nils Diewald | 94bae91 | 2014-09-22 13:40:31 +0000 | [diff] [blame] | 65 | root_dir => app->home . '/cache/data', |
Akron | dadacf1 | 2016-01-22 19:24:59 +0100 | [diff] [blame] | 66 | cache_size => '100m', |
| 67 | max_size => '100m' |
| 68 | }, |
| 69 | user => { |
| 70 | l1_cache => { |
Akron | 3cd391e | 2017-03-29 23:42:54 +0200 | [diff] [blame] | 71 | driver => 'FastMmap', |
| 72 | root_dir => app->home . '/cache/usermap', |
| 73 | cache_size => '50m', |
| 74 | max_size => '50m' |
Akron | dadacf1 | 2016-01-22 19:24:59 +0100 | [diff] [blame] | 75 | }, |
| 76 | driver => 'File', |
| 77 | root_dir => app->home . '/cache/userfile', |
| 78 | max_key_length => 64, |
| 79 | max_size => '500m' |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 80 | } |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 81 | } |
| 82 | } |