jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0

Problem with https

6 years 9 months ago #2806 by funcake
Hello, i just stumbled upon your OpenSim modules for joomla , while i am impressed on how it works i am facing some issues , my instance is running on https (with letsencrypt) and this disabled the http port 8002 which now runs on https and it seems that your module is now having issues fetching the map icons is there any quick workaround on this?

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2807 by foto50
Hi funcake

Not sure if I get this correct. The http port usually is 80 and 8002 is usually the public port for Robust services.

However, you could try following:

There are 2 files called "regionimage.php" in the folders /components/com_opensim/assets/ and /administrator/components/com_opensim/assets

Find in both the line showing
if(substr($serveruri,0,4) != "http") $serveruri = "http://".$serveruri;
and change it to
if(substr($serveruri,0,4) != "http") $serveruri = "https://".$serveruri;

Let me know if this solved your issue

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2808 by funcake
Hello, i mean the http port that reports the "hippo" thingy and yes your change worked thanks :)

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2809 by foto50
Thanks for your reply :) good to know

I think I will add a parameter for this in a future release ;)

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2810 by funcake
then i might need to tell you what i did :) first i created a cert with letsencrypt then i went into that folder and did this: openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out opensim.p12 , in Robust.ini i set it like this:

[Network]
port = ${Const|PrivatePort}

; HTTPS for "Out of band" management applications such as the remote admin
; module. May specify https_main = True to make the main http server
; use https or "False" to make the main server HTTP
https_main = True
;
; Create https_listener = "True" will create a listener on the port
; specified. Provide the path to your server certificate along with it's
; password
https_listener = True
;
; Set our listener to this port
https_port = 8002
;
; Path to X509 certificate
cert_path = "/etc/letsencrypt/live/mydomain/opensim.p12"
;
; Password for cert
cert_pass = "mypass"

Now port 8002 runs on native https
The following user(s) said Thank You: foto50

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2811 by funcake
But now i am faving another issue, i was going to try your money module and ive setup everything like explained in your pdf file but now i get this error on login

17:19:13 - [jOpenSimMONEY]: Unable to connect to Money Server http://192.168.1.54/components/com_opensim/currency.php. Exception System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <46d1840d27824d8497cde14c77c36ce0>:0
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <46d1840d27824d8497cde14c77c36ce0>:0
at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x0035d] in <46d1840d27824d8497cde14c77c36ce0>:0
at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in <46d1840d27824d8497cde14c77c36ce0>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <46d1840d27824d8497cde14c77c36ce0>:0
at Nwc.XmlRpc.XmlRpcResponseDeserializer.Deserialize (System.IO.TextReader xmlData) [0x000a2] in <1f9e8116d4ff4190af3fa16b1c882019>:0
at Nwc.XmlRpc.XmlRpcRequest.Send (System.String url, System.Int32 timeout) [0x000ac] in <1f9e8116d4ff4190af3fa16b1c882019>:0
at OpenSim.Modules.Currency.jOpenSimMoneyModule.genericCurrencyXMLRPCRequest (System.Collections.Hashtable reqParams, System.String method) [0x00073] in <7642f52cde6740ac8c8733fc45a7d469>:0

Please Log in or Create an account to join the conversation.

6 years 9 months ago #2812 by funcake
ignore the last one i fixed it, was some issue between local and wan IP

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0