-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I got some minor issues with it where I hope you can help me out: I > run a multi domain SOGo setup and therefor I am unable to provide > a config file in the first place (as a domain setting)... I can > think of several ways to solve this: * derrive the domain part of > the jid from the domain currently used: sogo.example.com -> > example.com, sogo.example.net -> example.net
You can overwrite the loadSettings function with <code>sjsxc.config.jsxc.loadSettings = function(username, password)</code>. > * dynamically load the config based on the domain name: > sjsxc.config.sogo.example.net.conf, sjsxc.config.example.com.conf > (this one, I guess, would be the easiest) * probably something > else... ;-) Maybe we continue this discussion in your opened issue (https://github.com/sualko/jsxc/issues/99). > another thing concerning the php file that is used to get the turn > server config: 1. please, PLEASE, just make it a static json file > (no need to run php anywhere, especially not for static > configuration). 2. please do NOT put credentials in an > unauthenticated location You are right, currently this doesn't make sense, but I want to support in the next release TURN-REST-API and therefore I need a php file. > 3. please, do use the same credentials for TURN authentication that > is used for XMPP and SOGo. This btw. is the only authentication, > ejabberd provides as well. (maybe add 'authentication' = > 'anonymous' or 'user' just like ejabberd does to the json config; > and then, this may go directly into the config file) I think it's a bad idea to share your sogo credentials in a json file. Also TURN and xmpp/sogo is totally independent. If you have further questions, please send me an email. Regards, Klaus -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUYJFkAAoJECDHQz+a0U/XWaoH/1xRyZV11H3KYJ0R8z36c4+e KJwQ//Utbw9wSX2d+zYRqIYdbgifojNgRCIKP1JJl5abS4h+o92uVuz43QcEcXND a2BAybj/fent3fg+Q/6i7DH/+p8WCd2M5ZswxYd74EVQxnImNM0qtqsVVN9cPhg0 CsC43N3T4Q1RpMcltR+YkqHKG9yJ60ljzohVfh5yTtxt+3I69BHxzhSqvjFykVBj OR9Vy7N9wCA2shINr7MwYfUt0ISkSR3BD7fvqwrCvVdwtyuLGzL3QtTLI1tQKKls lrn7qo7h2M9SZqpTxwQlVzBy3oGJNOQG3YBRyfFL+85GPs8JWBbULMtOk8QjumU= =PW7n -----END PGP SIGNATURE----- -- [email protected] https://inverse.ca/sogo/lists
