Project

General

Profile

Does my init.properties look good? What's --c2s-ports ??

# JeSuisTigase
Added about 4 years ago

Hi,

I'm trying to allow connection from a webrowser (strophejs) to my tigase server via bosch, through the port 5281 with SSL.

What do I have to do? I juste have to modify my file init.properties, isn't ?

here it is :

config-type=--gen-config-all

--cluster-mode = false

--cluster-nodes = im.wonderchat.com

--admins = admin@im.wonderchat.com

--virt-hosts = im.wonderchat.com

--bosh-ports=5281

bosh/connections/5281/socket=ssl

bosh/connections/5281/type=accept

bosh/max-inactivity[L]=60

bosh/max-wait[L]=30

--user-db = mysql

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase

--comp-name-1 = search

--comp-class-1 = com.wonderchat.tigase.UserRepositoryJabberSearch

--comp-name-2 = conference

--comp-class-2 = tigase.muc.MUCComponent

--debug = server,bosh

--debug-packages = com.wonderchat.tigase

message-router/updates-checking[B]=false

--auth-db = com.wonderchats.tigase.CASAuth

--auth-db-uri = https://wonderchat.com/cas/proxyValidate

basic-conf/auth-repo-params/service-ticket-validation=https://wonderchat.com/cas/proxyValidate

basic-conf/auth-repo-params/alt-auth-db=mysql

basic-conf/auth-repo-params/alt-auth-db-uri=jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase

--debug-packages = com.wonderchat.tigase

Moreover, what is the purpose of this property ? :

--c2s-ports=5281

c2s/5281/port_type=plain


Replies (1)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

  1. JeSuisTigase wrote:

Hi,

I'm trying to allow connection from a webrowser (strophejs) to my tigase server via bosch, through the port 5281 with SSL.

What do I have to do? I juste have to modify my file init.properties, isn't ?

here it is :

--bosh-ports=5281

bosh/connections/5281/socket=ssl

bosh/connections/5281/type=accept

Yes, this is the needed configuration.

Moreover, what is the purpose of this property ? :

--c2s-ports=5281

c2s/5281/port_type=plain

the c2s is the regular socket so you should not configure it on the same port as you just configured bosh. The port_type defines whether it should be, well, plain or encrypted.

    (1-1/1)