| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 1 | { |
| 2 | Kalamar => { |
| 3 | ## Backend server path |
| 4 | # api_path => 'https://korap.example.org/api/', |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 5 | ## Backend API version |
| 6 | # api_version => '1.0', |
| 7 | |
| 8 | ## If the application is run behind a proxy, ignore the forwarded host |
| 9 | # proxy_host => 0, |
| 10 | |
| 11 | ## Run the application in a subfolder behind a proxy: |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 12 | proxy_prefix => '/deliko', |
| 13 | plugins => ['Plugins'], |
| 14 | # https_only => 1, |
| 15 | |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 16 | |
| 17 | ## The name of the base corpus, |
| 18 | ## for query examples (see kalamar.queries.dict) |
| 19 | examplecorpus => 'DeLiKo@DNB', |
| 20 | |
| 21 | ## For further Plugins, add them |
| 22 | ## to this array: |
| 23 | # plugins => [], |
| 24 | ## 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 Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 35 | defaults => { |
| Marc Kupietz | d608f63 | 2025-09-23 09:46:29 +0200 | [diff] [blame] | 36 | alignment => 'center' |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 37 | }, |
| 38 | proxies => [{ |
| 39 | root_path => '/plugin/export', |
| Marc Kupietz | 00491d6 | 2025-09-21 13:22:59 +0200 | [diff] [blame] | 40 | mount => 'http://kalamar-export-plugin:7777', |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 41 | service => 'export-plugin-proxy' |
| 42 | }], |
| Marc Kupietz | b80ca66 | 2025-10-04 15:19:38 +0200 | [diff] [blame] | 43 | navi_ext => [ |
| 44 | { |
| 45 | "title" => "virtual_subcorpora", |
| 46 | "id" => "virtual_subcorpora" |
| 47 | } |
| 48 | ], |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 49 | }, |
| 50 | CSP => { |
| Marc Kupietz | b80ca66 | 2025-10-04 15:19:38 +0200 | [diff] [blame] | 51 | 'frame-src' => ['self','https://korap.dnb.de/','https://korap.ids-mannheim.de','https://www.youtube.com'], |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 52 | 'frame-ancestors' => ['self','http://korap.dnb.de/','https://korap.dnb.de/'] |
| 53 | }, |
| 54 | 'Kalamar-Plugins' => { |
| Marc Kupietz | d608f63 | 2025-09-23 09:46:29 +0200 | [diff] [blame] | 55 | default_plugins =>'deliko.plugins.json' |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 56 | }, |
| 57 | Localize => { |
| 58 | dict => { |
| Marc Kupietz | b80ca66 | 2025-10-04 15:19:38 +0200 | [diff] [blame] | 59 | 'en_Nav_virtual_subcorpora' => 'Useful Virtual Subcorpora', |
| 60 | 'de_Nav_virtual_subcorpora' => 'Nützliche virtuelle Subkorpora', |
| Marc Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 61 | 'en_title_addon' => 'DeLiKo@DNB', |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 62 | 'de_Template_intro' => 'custom/intro', |
| 63 | 'en_Template_intro' => 'custom/intro', |
| 64 | 'en_howToCite' => 'Citation Help', |
| 65 | 'de_howToCite' => 'Zitierhilfe', |
| 66 | 'en_recentCorpusPub' => 'Recent publications to refer to DeLiKo@DNB as research data', |
| 67 | 'de_recentCorpusPub' => 'Neuere Publikationen zu DeLiKo@DNB als Forschungsdatengrundlage', |
| 68 | 'en_recentToolPub' => 'Recent publications to refer to KorAP as a research tool', |
| 69 | 'de_recentToolPub' => 'Neuere Publikationen zu KorAP als Forschungswerkzeug', |
| 70 | }, |
| 71 | override => 1 |
| 72 | }, |
| 73 | 'TagHelpers-ContentBlock' => { |
| 74 | footer => [ |
| 75 | { |
| 76 | inline => '<%= link_to loc("about") => "http://www.ids-mannheim.de/kl/projekte/korap/" %>', |
| 77 | position => 70 |
| 78 | }, |
| 79 | { |
| 80 | inline => '<%= link_to loc("howToCite") => url_for(doc => { page => "faq" })->fragment("howToCite") %>', |
| 81 | position => 75 |
| 82 | }, |
| 83 | { |
| 84 | inline => '<%= link_to loc("imprint") => "https://www.dnb.de/DE/Service/Impressum/impressum_node.html" %>', |
| 85 | position => 80 |
| 86 | }], |
| 87 | faq => [ |
| 88 | { |
| 89 | position => 50, |
| 90 | inline => <<'HOWTOCITE' |
| 91 | <section> |
| 92 | <h3 id="howToCite"><%= loc 'howToCite' %></h3> |
| 93 | %= include 'custom/partial/citation' |
| 94 | </section> |
| 95 | HOWTOCITE |
| 96 | } |
| 97 | ] |
| 98 | } |
| 99 | } |