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 | dbb448c | 2018-02-14 17:02:36 +0100 | [diff] [blame] | 21 | # - Localize |
| 22 | # See Mojolicious::Plugin::Localize |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 23 | # - TagHelpers-ContentBlock |
| 24 | # See Mojolicious::Plugin::TagHelpers::ContentBlock |
Akron | dffa939 | 2018-10-12 16:26:09 +0200 | [diff] [blame] | 25 | # - CHI |
| 26 | # See Mojolicious::Plugin::CHI |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 27 | |
Akron | 4c33c62 | 2018-11-12 13:43:27 +0100 | [diff] [blame] | 28 | # For Plugins, |
| 29 | # - Piwik |
| 30 | # See Mojolicious::Plugin::Piwik |
| 31 | |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 32 | { |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 33 | Kalamar => { |
Akron | 8f8deda | 2021-01-15 12:55:06 +0100 | [diff] [blame] | 34 | ## Backend server path |
| 35 | # api_path => 'https://korap.example.org/api/', |
Akron | c7656e9 | 2018-08-30 13:33:25 +0200 | [diff] [blame] | 36 | |
Akron | b7876a8 | 2019-07-18 13:09:00 +0200 | [diff] [blame] | 37 | ## Backend API version |
Akron | c7656e9 | 2018-08-30 13:33:25 +0200 | [diff] [blame] | 38 | # api_version => '1.0', |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 39 | |
Akron | 90be03b | 2020-02-03 16:13:37 +0100 | [diff] [blame] | 40 | ## If the application is run behind a proxy, ignore the forwarded host |
| 41 | # proxy_host => 0, |
| 42 | |
Akron | 0c4cd22 | 2019-07-19 16:33:34 +0200 | [diff] [blame] | 43 | ## Run the application in a subfolder behind a proxy: |
| 44 | # proxy_prefix => '/korap', |
| 45 | |
Akron | b7876a8 | 2019-07-18 13:09:00 +0200 | [diff] [blame] | 46 | ## The name of the base corpus, |
| 47 | ## for query examples (see kalamar.queries.dict) |
| 48 | # examplecorpus => 'dereko', |
Akron | 4c33c62 | 2018-11-12 13:43:27 +0100 | [diff] [blame] | 49 | |
Akron | b7876a8 | 2019-07-18 13:09:00 +0200 | [diff] [blame] | 50 | ## For further Plugins, add them |
| 51 | ## to this array: |
| 52 | # plugins => [], |
| 53 | ## Currently bundled: Piwik, Auth |
| 54 | |
Akron | 0c4cd22 | 2019-07-19 16:33:34 +0200 | [diff] [blame] | 55 | ## Require everything to be send via https only: |
| 56 | # https_only => 1, |
| 57 | |
Akron | bc6b3f2 | 2021-01-13 14:53:12 +0100 | [diff] [blame] | 58 | ## Override default content security policy |
| 59 | # cs_policy => "default-src '*';" |
| 60 | |
Akron | 23ab047 | 2019-12-17 16:55:55 +0100 | [diff] [blame] | 61 | ## Set proxy timeouts |
| 62 | # proxy_inactivity_timeout => 120, |
| 63 | # proxy_connect_timeout => 120, |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 64 | }, |
Akron | 754dae5 | 2017-09-28 14:54:28 +0200 | [diff] [blame] | 65 | |
| 66 | # See Mojolicious::Plugin::TagHelpers::MailToChiffre |
Akron | 40cc1d8 | 2017-05-10 17:58:16 +0200 | [diff] [blame] | 67 | 'TagHelpers-MailToChiffre' => { |
| 68 | method_name => 'PArok', |
| 69 | pattern_rotate => 673 |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 70 | } |
| 71 | } |