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 | # |
| 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 |
| 26 | my $api = 'http://localhost:9999/api/'; |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 27 | { |
Nils Diewald | dd2d4e8 | 2014-05-31 17:08:33 +0000 | [diff] [blame] | 28 | Search => { |
Nils Diewald | 2fe12e1 | 2015-03-06 16:47:06 +0000 | [diff] [blame] | 29 | engine => 'Kalamar::API', |
Akron | 40cc1d8 | 2017-05-10 17:58:16 +0200 | [diff] [blame] | 30 | # Kustvakt server: |
Akron | 3cd391e | 2017-03-29 23:42:54 +0200 | [diff] [blame] | 31 | api => $ENV{'KALAMAR_API'} // $api |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 32 | }, |
| 33 | Kalamar => { |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 34 | # Kustvakt server: |
Akron | 7d75ee3 | 2017-05-02 13:42:41 +0200 | [diff] [blame] | 35 | api => $ENV{'KALAMAR_API'} // $api, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 36 | |
| 37 | # In case, the user management of Kustvakt |
| 38 | # is used, make this a true value |
Akron | 625fe0c | 2017-05-03 16:15:08 +0200 | [diff] [blame] | 39 | auth_support => 0 |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 40 | }, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 41 | |
| 42 | # See Mojolicious::Plugin::TagHelpers::MailToChiffre |
Akron | 40cc1d8 | 2017-05-10 17:58:16 +0200 | [diff] [blame] | 43 | 'TagHelpers-MailToChiffre' => { |
| 44 | method_name => 'PArok', |
| 45 | pattern_rotate => 673 |
| 46 | }, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 47 | |
| 48 | # See Mojolicious::Plugin::CHI |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 49 | CHI => { |
| 50 | default => { |
| 51 | driver => 'FastMmap', |
Nils Diewald | 94bae91 | 2014-09-22 13:40:31 +0000 | [diff] [blame] | 52 | root_dir => app->home . '/cache/data', |
Akron | dadacf1 | 2016-01-22 19:24:59 +0100 | [diff] [blame] | 53 | cache_size => '100m', |
| 54 | max_size => '100m' |
| 55 | }, |
| 56 | user => { |
| 57 | l1_cache => { |
Akron | 3cd391e | 2017-03-29 23:42:54 +0200 | [diff] [blame] | 58 | driver => 'FastMmap', |
| 59 | root_dir => app->home . '/cache/usermap', |
| 60 | cache_size => '50m', |
| 61 | max_size => '50m' |
Akron | dadacf1 | 2016-01-22 19:24:59 +0100 | [diff] [blame] | 62 | }, |
| 63 | driver => 'File', |
| 64 | root_dir => app->home . '/cache/userfile', |
| 65 | max_key_length => 64, |
| 66 | max_size => '500m' |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 67 | } |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 68 | } |
| 69 | } |