diff -r a2342f26c9de -r b0b56e0f8c7f server/src/config/corpusparole.php --- a/server/src/config/corpusparole.php Fri Jan 15 15:27:56 2016 +0100 +++ b/server/src/config/corpusparole.php Fri Jan 15 15:35:00 2016 +0100 @@ -1,6 +1,8 @@ 0)?$baseUrl:"/"; return [ 'sesame_base_url' => $sesameBaseUrl, @@ -81,5 +83,43 @@ ], 'viaf_base_url' => 'http://viaf.org/viaf/', - 'viaf_cache_expiration' => 60*24*30 + 'viaf_cache_expiration' => 60*24*30, + + 'lexvo_base_url' => 'http://lexvo.org/id/iso639-3/', + 'lexvo_cache_expiration' => 60*24*30, + 'lexvo_sesame_query_url' => $sesameBaseUrl.'repositories/'.env('CORPUSPAROLE_SESAME_LEXVO_REPOSITORY'), + + 'bo_client_environment' => [ + "modulePrefix" => "bo-client", + "podModulePrefix" => "bo-client/pods", + "environment" => "production", + "baseURL" => $baseUrl, + "locationType" => "hash", + "i18n" => ["defaultLocale" => "fr"], + "EmberENV" => ["FEATURES"=>(object)[]], # to force json serialisation as object + "APP" => [ + "bo-doc-viaf-autocomplete" => [ + "viafQueryUrl" => "http://viaf.org/viaf/AutoSuggest?query=", + "viafBaseUrl" => "http://viaf.org/viaf/" + ], + "LOG_RESOLVER" => true, + "LOG_ACTIVE_GENERATION" => true, + "LOG_TRANSITIONS" => true, + "LOG_TRANSITIONS_INTERNAL" => true, + "LOG_VIEW_LOOKUPS" => true, + "name" => "bo-client", + "version" => "0.0.0 " + ], + "contentSecurityPolicy" => [ + "default-src" => "'none'", + "script-src" => "'self'", + "font-src" => "'self'", + "connect-src" => "'self' *", + "img-src" => "'self'", + "style-src" => "'self' *", + "media-src" => "'self'" + ], + "contentSecurityPolicyHeader" => "Content-Security-Policy-Report-Only", + "exportApplicationGlobal" => true + ] ];