| 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/', |
| 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 Kupietz | 2a80bf9 | 2025-06-16 15:37:27 +0200 | [diff] [blame] | 13 | # proxy_prefix => '/deliko', |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 14 | |
| 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 Kupietz | 3685090 | 2025-09-19 15:16:34 +0200 | [diff] [blame] | 22 | plugins => ['Plugins'], |
| 23 | |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 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 => { |
| 36 | align => 'center' |
| 37 | }, |
| 38 | proxies => [{ |
| 39 | root_path => '/plugin/export', |
| 40 | mount => 'http://10.10.14.225:7778', |
| 41 | service => 'export-plugin-proxy' |
| 42 | }], |
| 43 | }, |
| 44 | CSP => { |
| 45 | 'frame-src' => 'self', |
| 46 | 'frame-ancestors' => ['self','http://korap.dnb.de/','https://korap.dnb.de/'] |
| 47 | }, |
| 48 | 'Kalamar-Plugins' => { |
| 49 | default_plugins =>'wiki.plugins.json' |
| Marc Kupietz | 90d678f | 2025-04-25 12:20:51 +0200 | [diff] [blame] | 50 | }, |
| 51 | Localize => { |
| 52 | dict => { |
| 53 | 'en_title_addon' => 'DeLiKo@DNB-XL', |
| 54 | 'de_Template_intro' => 'custom/intro', |
| 55 | 'en_Template_intro' => 'custom/intro', |
| 56 | 'en_howToCite' => 'Citation Help', |
| 57 | 'de_howToCite' => 'Zitierhilfe', |
| 58 | 'en_recentCorpusPub' => 'Recent publications to refer to DeLiKo@DNB as research data', |
| 59 | 'de_recentCorpusPub' => 'Neuere Publikationen zu DeLiKo@DNB als Forschungsdatengrundlage', |
| 60 | 'en_recentToolPub' => 'Recent publications to refer to KorAP as a research tool', |
| 61 | 'de_recentToolPub' => 'Neuere Publikationen zu KorAP als Forschungswerkzeug', |
| 62 | }, |
| 63 | override => 1 |
| 64 | }, |
| 65 | 'TagHelpers-ContentBlock' => { |
| 66 | footer => [ |
| 67 | { |
| 68 | inline => '<%= link_to loc("about") => "http://www.ids-mannheim.de/kl/projekte/korap/" %>', |
| 69 | position => 70 |
| 70 | }, |
| 71 | { |
| 72 | inline => '<%= link_to loc("howToCite") => url_for(doc => { page => "faq" })->fragment("howToCite") %>', |
| 73 | position => 75 |
| 74 | }, |
| 75 | { |
| 76 | inline => '<%= link_to loc("imprint") => "https://www.dnb.de/DE/Service/Impressum/impressum_node.html" %>', |
| 77 | position => 80 |
| 78 | }], |
| 79 | faq => [ |
| 80 | { |
| 81 | position => 50, |
| 82 | inline => <<'HOWTOCITE' |
| 83 | <section> |
| 84 | <h3 id="howToCite"><%= loc 'howToCite' %></h3> |
| 85 | %= include 'custom/partial/citation' |
| 86 | </section> |
| 87 | HOWTOCITE |
| 88 | } |
| 89 | ] |
| 90 | } |
| 91 | } |