aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-08-17 07:05:49 +1000
committeronefang2019-08-17 07:05:49 +1000
commit9c043cbf4c9adb85acef5c9ffa269d4180f44832 (patch)
tree16c2be9f8e8b633b974da2718cb59a812fb7f9ef
parentBump build number. (diff)
downloadopensim-SC-9c043cbf4c9adb85acef5c9ffa269d4180f44832.zip
opensim-SC-9c043cbf4c9adb85acef5c9ffa269d4180f44832.tar.gz
opensim-SC-9c043cbf4c9adb85acef5c9ffa269d4180f44832.tar.bz2
opensim-SC-9c043cbf4c9adb85acef5c9ffa269d4180f44832.tar.xz
Simple web server gets HTTPS.
-rw-r--r--OpenSim/Server/Handlers/Web/WebServerConnector.cs15
-rw-r--r--prebuild.xml1
2 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Web/WebServerConnector.cs b/OpenSim/Server/Handlers/Web/WebServerConnector.cs
index 06fd892..3a8e906 100644
--- a/OpenSim/Server/Handlers/Web/WebServerConnector.cs
+++ b/OpenSim/Server/Handlers/Web/WebServerConnector.cs
@@ -12,6 +12,7 @@ using OpenMetaverse;
12using OpenMetaverse.StructuredData; 12using OpenMetaverse.StructuredData;
13using OpenSim.Data.MySQL; 13using OpenSim.Data.MySQL;
14using OpenSim.Framework; 14using OpenSim.Framework;
15using OpenSim.Framework.Servers;
15using OpenSim.Framework.Servers.HttpServer; 16using OpenSim.Framework.Servers.HttpServer;
16using OpenSim.Server.Handlers.Base; 17using OpenSim.Server.Handlers.Base;
17 18
@@ -82,8 +83,20 @@ namespace OpenSim.Server.Handlers.Web
82 ssi.Add("grid", cfg.GetString("gridname", "my grid")); 83 ssi.Add("grid", cfg.GetString("gridname", "my grid"));
83 ssi.Add("uri", cfg.GetString("login", HomeURI)); 84 ssi.Add("uri", cfg.GetString("login", HomeURI));
84 ssi.Add("version", VersionInfo.Version); 85 ssi.Add("version", VersionInfo.Version);
86
85 server.AddHTTPHandler("/web/", WebRequestHandler); 87 server.AddHTTPHandler("/web/", WebRequestHandler);
86 } 88 IConfig networkConfig = m_Config.Configs["Network"];
89 if (null != networkConfig)
90 {
91 uint https_port = (uint) networkConfig.GetInt("https_port", 0);
92 if (0 != https_port)
93 {
94 server = MainServer.GetHttpServer(https_port, null);
95 if (null != server)
96 server.AddHTTPHandler("/web/", WebRequestHandler);
97 }
98 }
99 }
87 100
88 private Hashtable WebRequestHandler(Hashtable request) 101 private Hashtable WebRequestHandler(Hashtable request)
89 { 102 {
diff --git a/prebuild.xml b/prebuild.xml
index c4c5e4f..71880bc 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -1213,6 +1213,7 @@
1213 <Reference name="MySql.Data" path="../../../bin/"/> 1213 <Reference name="MySql.Data" path="../../../bin/"/>
1214 <Reference name="OpenSim.Framework"/> 1214 <Reference name="OpenSim.Framework"/>
1215 <Reference name="OpenSim.Framework.Console"/> 1215 <Reference name="OpenSim.Framework.Console"/>
1216 <Reference name="OpenSim.Framework.Servers"/>
1216 <Reference name="OpenSim.Framework.Servers.HttpServer"/> 1217 <Reference name="OpenSim.Framework.Servers.HttpServer"/>
1217 <Reference name="OpenSim.Server.Base"/> 1218 <Reference name="OpenSim.Server.Base"/>
1218 <Reference name="OpenSim.Services.Base"/> 1219 <Reference name="OpenSim.Services.Base"/>