Sfoglia il codice sorgente

send GridStatus and GridStatusRSS urls to viewers in opensimextras (and grinfinfo?), for viewers that may care in future. This can be set on section GridInfoService of robust.ini or standalonecommon.ini

UbitUmarov 3 anni fa
parent
commit
b4b1c4551f

+ 10 - 0
OpenSim/Services/GridService/GridService.cs

@@ -194,6 +194,16 @@ namespace OpenSim.Services.GridService
             if (!string.IsNullOrEmpty(configVal))
                 m_ExtraFeatures["GridNick"] = configVal;
 
+            configVal = Util.GetConfigVarFromSections<string>(
+                config, "GridStatus", new string[] { "GridInfo", "GridInfoService" }, string.Empty);
+            if (!string.IsNullOrEmpty(configVal))
+                m_ExtraFeatures["GridStatus"] = configVal;
+
+            configVal = Util.GetConfigVarFromSections<string>(
+                config, "GridStatusRSS", new string[] { "GridInfo", "GridInfoService" }, string.Empty);
+            if (!string.IsNullOrEmpty(configVal))
+                m_ExtraFeatures["GridStatusRSS"] = configVal;
+
             m_ExtraFeatures["ExportSupported"] = gridConfig.GetString("ExportSupported", "true");
 
             string[] sections = new string[] { "Const, Startup", "Hypergrid", "GatekeeperService" };

+ 4 - 0
bin/Robust.HG.ini.example

@@ -634,6 +634,10 @@
     ; this is the entry point for all the regions of the world
     ; gatekeeper = ${Const|BaseURL}:${Const|PublicPort}/
 
+    ; a http page for grid status
+    ;GridStatus = ${Const|BaseURL}:${Const|PublicPort}/GridStatus
+    ; a RSS page for grid status
+    ;GridStatusRSS = ${Const|BaseURL}:${Const|PublicPort}/GridStatusRSS
 
 [GatekeeperService]
     LocalServiceModule = "OpenSim.Services.HypergridService.dll:GatekeeperService"

+ 4 - 0
bin/Robust.ini.example

@@ -551,6 +551,10 @@
     ; password help: optional: page providing password assistance for users of your grid
     ;password = ${Const|BaseURL}/password
 
+    ; a http page for grid status
+    ;GridStatus = ${Const|BaseURL}:${Const|PublicPort}/GridStatus
+    ; a RSS page for grid status
+    ;GridStatusRSS = ${Const|BaseURL}:${Const|PublicPort}/GridStatusRSS
 
 [Messaging]
     ; OfflineIM

+ 5 - 0
bin/config-include/StandaloneCommon.ini.example

@@ -252,6 +252,11 @@
     ; this is the entry point for all user-related HG services
     ; uas = ${Const|BaseURL}:${Const|PublicPort}/
 
+    // a http page for grid status
+    ;GridStatus = ${Const|BaseURL}:${Const|PublicPort}/GridStatus
+    // a RSS page for grid status
+    ;GridStatusRSS = ${Const|BaseURL}:${Const|PublicPort}/GridStatusRSS
+
 [MapImageService]
     ; Set this if you want to change the default
     ; TilesStoragePath = "maptiles"