blob: 56a6358ab8a0f3b36a5ff2b7e40a1fe25102adfe [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#
Akrondbb448c2018-02-14 17:02:36 +01008# To load the configuration, start your application with
Akron754dae52017-09-28 14:54:28 +02009# the environment variable
10#
11# MOJO_MODE=[MYNAME]
12#
13# Further typical configurations in this file include
14#
15# - hypnotoad
Akrondbb448c2018-02-14 17:02:36 +010016# See Mojo::Server::Hypnotoad
Akron754dae52017-09-28 14:54:28 +020017# - MailException
Akrondbb448c2018-02-14 17:02:36 +010018# See Mojolicious::Plugin::MailException
Akron754dae52017-09-28 14:54:28 +020019# - TagHelpers-Pagination
Akrondbb448c2018-02-14 17:02:36 +010020# See Mojolicious::Plugin::TagHelpers::Pagination
Akrondbb448c2018-02-14 17:02:36 +010021# - Localize
22# See Mojolicious::Plugin::Localize
Akronafeca252018-05-23 15:54:28 +020023# - TagHelpers-ContentBlock
24# See Mojolicious::Plugin::TagHelpers::ContentBlock
Akron1011daf2021-03-01 12:34:58 +010025# - TagHelpers-MailToChiffre
26# See Mojolicious::Plugin::TagHelpers::MailToChiffre
Akrondffa9392018-10-12 16:26:09 +020027# - CHI
28# See Mojolicious::Plugin::CHI
Akron4cefd202023-09-27 12:39:41 +020029# - CSP
30# See Kalamar::Plugin::CSP
Akron754dae52017-09-28 14:54:28 +020031
Akron4c33c622018-11-12 13:43:27 +010032# For Plugins,
33# - Piwik
34# See Mojolicious::Plugin::Piwik
35
Nils Diewald5d1ffb42014-05-21 17:45:34 +000036{
Akrone8235be2016-06-27 11:02:18 +020037 Kalamar => {
Akron8f8deda2021-01-15 12:55:06 +010038 ## Backend server path
39 # api_path => 'https://korap.example.org/api/',
Akronc7656e92018-08-30 13:33:25 +020040
Akronb7876a82019-07-18 13:09:00 +020041 ## Backend API version
Akronc7656e92018-08-30 13:33:25 +020042 # api_version => '1.0',
Akron754dae52017-09-28 14:54:28 +020043
Akronf260e6e2023-05-16 16:36:10 +020044 ## Log file
45 # log_file => 'logs/kalamar.log',
46
Akron90be03b2020-02-03 16:13:37 +010047 ## If the application is run behind a proxy, ignore the forwarded host
48 # proxy_host => 0,
49
Akron0c4cd222019-07-19 16:33:34 +020050 ## Run the application in a subfolder behind a proxy:
51 # proxy_prefix => '/korap',
52
Akronb7876a82019-07-18 13:09:00 +020053 ## The name of the base corpus,
54 ## for query examples (see kalamar.queries.dict)
55 # examplecorpus => 'dereko',
Akron4c33c622018-11-12 13:43:27 +010056
Akronb7876a82019-07-18 13:09:00 +020057 ## For further Plugins, add them
58 ## to this array:
59 # plugins => [],
60 ## Currently bundled: Piwik, Auth
61
Akron0c4cd222019-07-19 16:33:34 +020062 ## Require everything to be send via https only:
63 # https_only => 1,
64
Akron23ab0472019-12-17 16:55:55 +010065 ## Set proxy timeouts
66 # proxy_inactivity_timeout => 120,
67 # proxy_connect_timeout => 120,
Akron3422d452024-05-14 11:14:07 +020068
69 ## Adjust defaults
70 # defaults => {
71 # items_per_page => 20,
72 # context => '20-t,20-t'
73 # }
Nils Diewald5d1ffb42014-05-21 17:45:34 +000074 }
75}