blob: e364957e612fe582e912351a2f1ded7d61a9c5c1 [file] [log] [blame]
Marc Kupietz90d678f2025-04-25 12:20:51 +02001{
2 Kalamar => {
3 ## Backend server path
4 # api_path => 'https://korap.example.org/api/',
5 # plugins => ["Auth"],
6 ## Backend API version
7 # api_version => '1.0',
8
9 ## If the application is run behind a proxy, ignore the forwarded host
10 # proxy_host => 0,
11
12 ## Run the application in a subfolder behind a proxy:
Marc Kupietz2a80bf92025-06-16 15:37:27 +020013 # proxy_prefix => '/deliko',
Marc Kupietz90d678f2025-04-25 12:20:51 +020014
15 ## The name of the base corpus,
16 ## for query examples (see kalamar.queries.dict)
17 examplecorpus => 'DeLiKo@DNB',
18
19 ## For further Plugins, add them
20 ## to this array:
21 # plugins => [],
Marc Kupietz36850902025-09-19 15:16:34 +020022 plugins => ['Plugins'],
23
Marc Kupietz90d678f2025-04-25 12:20:51 +020024 ## Currently bundled: Piwik, Auth
25
26 ## Require everything to be send via https only:
27 # https_only => 1,
28
29 ## Override default content security policy
30 # cs_policy => "default-src '*';"
31
32 ## Set proxy timeouts
33 # proxy_inactivity_timeout => 120,
34 # proxy_connect_timeout => 120,
Marc Kupietz36850902025-09-19 15:16:34 +020035 defaults => {
Marc Kupietzd608f632025-09-23 09:46:29 +020036 alignment => 'center'
Marc Kupietz36850902025-09-19 15:16:34 +020037 },
38 proxies => [{
39 root_path => '/plugin/export',
Marc Kupietz00491d62025-09-21 13:22:59 +020040 mount => 'http://kalamar-export-plugin:7777',
Marc Kupietz36850902025-09-19 15:16:34 +020041 service => 'export-plugin-proxy'
42 }],
Marc Kupietzb80ca662025-10-04 15:19:38 +020043 navi_ext => [ {
44 "title" => "virtual_subcorpora",
45 "id" => "virtual_subcorpora"
46 }
47 ],
Marc Kupietz36850902025-09-19 15:16:34 +020048 },
49 CSP => {
Marc Kupietzb80ca662025-10-04 15:19:38 +020050 'frame-src' => ['self', 'https://korap.ids-mannheim.de/', 'https://www.youtube.com'],
Marc Kupietz36850902025-09-19 15:16:34 +020051 'frame-ancestors' => ['self','http://korap.dnb.de/','https://korap.dnb.de/']
52 },
53 'Kalamar-Plugins' => {
Marc Kupietzd608f632025-09-23 09:46:29 +020054 default_plugins =>'deliko.plugins.json'
Marc Kupietz90d678f2025-04-25 12:20:51 +020055 },
56 Localize => {
57 dict => {
Marc Kupietz79b0db52025-10-01 16:13:25 +020058 'en_title_addon' => 'DeLiKo-XL@DNB',
Marc Kupietzb80ca662025-10-04 15:19:38 +020059 'en_Nav_virtual_subcorpora' => 'Useful Virtual Subcorpora',
60 'de_Nav_virtual_subcorpora' => 'Nützliche virtuelle Subkorpora',
Marc Kupietz90d678f2025-04-25 12:20:51 +020061 'de_Template_intro' => 'custom/intro',
62 'en_Template_intro' => 'custom/intro',
63 'en_howToCite' => 'Citation Help',
64 'de_howToCite' => 'Zitierhilfe',
65 'en_recentCorpusPub' => 'Recent publications to refer to DeLiKo@DNB as research data',
66 'de_recentCorpusPub' => 'Neuere Publikationen zu DeLiKo@DNB als Forschungsdatengrundlage',
67 'en_recentToolPub' => 'Recent publications to refer to KorAP as a research tool',
68 'de_recentToolPub' => 'Neuere Publikationen zu KorAP als Forschungswerkzeug',
69 },
70 override => 1
71 },
72 'TagHelpers-ContentBlock' => {
73 footer => [
74 {
75 inline => '<%= link_to loc("about") => "http://www.ids-mannheim.de/kl/projekte/korap/" %>',
76 position => 70
77 },
78 {
79 inline => '<%= link_to loc("howToCite") => url_for(doc => { page => "faq" })->fragment("howToCite") %>',
80 position => 75
81 },
82 {
83 inline => '<%= link_to loc("imprint") => "https://www.dnb.de/DE/Service/Impressum/impressum_node.html" %>',
84 position => 80
85 }],
86 faq => [
87 {
88 position => 50,
89 inline => <<'HOWTOCITE'
90<section>
91 <h3 id="howToCite"><%= loc 'howToCite' %></h3>
92%= include 'custom/partial/citation'
93</section>
94HOWTOCITE
95 }
96 ]
97 }
98}