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');
/*
* 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
/*

View File

@ -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,