add application mode settings

This commit is contained in:
ghost 2023-04-25 20:25:12 +03:00
parent 9396c52313
commit a16a13b395
2 changed files with 13 additions and 2 deletions

View File

@ -15,6 +15,17 @@ error_reporting(E_ALL);
*/ */
define('APPLICATION_NAME', 'My YGGo host'); 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 // Website
/* /*

View File

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