Browse Source

add application mode settings

main
ghost 2 years ago
parent
commit
a16a13b395
  1. 11
      config/app.php.txt
  2. 4
      public/api.php

11
config/app.php.txt

@ -15,6 +15,17 @@ error_reporting(E_ALL); @@ -15,6 +15,17 @@ error_reporting(E_ALL);
*/
define('APPLICATION_NAME', 'My YGGo host');
/*
* Application mode
*
* FEDERATIVE - crawl and share distributed index from other YGGo nodes running on same API version
* LOCAL - encapsulated web search portal
*
* see also: API_ENABLED, API_MANIFEST_ENABLED settings
*
*/
define('APPLICATION_MODE', 'FEDERATIVE');
// Website
/*

4
public/api.php

@ -100,8 +100,8 @@ if (API_ENABLED) { @@ -100,8 +100,8 @@ if (API_ENABLED) {
'status' => true,
'result' => [
'applicationName' => APPLICATION_NAME,
'websiteDomain' => WEBSITE_DOMAIN,
'applicationMode' => APPLICATION_MODE,
'applicationUrl' => WEBSITE_DOMAIN,
'crawlUrlRegexp' => CRAWL_URL_REGEXP,

Loading…
Cancel
Save