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