mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
add application mode settings
This commit is contained in:
parent
9396c52313
commit
a16a13b395
@ -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
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user