element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

Set jitsi server in element desktop conf not working

Open Thatoo opened this issue 3 years ago • 14 comments

I have Element 1.7.29 on Pop OS 20.10 I did

nano ~/.config/Element/config.json

The file was not existing. I copy paste in it the following, as explained in here https://github.com/vector-im/element-web/blob/develop/docs/jitsi.md

{
  "jitsi": {
    "preferredDomain": "jitsi.xxx.fr"
  }
}

then I restarted Element and when I click on camera call button in a room, it creates a jitsi.riot.im call and not a jitsi.xxx.fr call as expected.

Thatoo avatar Jun 01 '21 19:06 Thatoo

Was the ~/.config/Element directory already existing? Is there a ~/.config/Riot directory you could try putting the config in?

robintown avatar Jun 01 '21 20:06 robintown

~/.config/Element directory was existing and there is no ~/.config/Riot directory. There was a ~/.config/Element/electron-config.json file though but I didn't modify this one. I wonder if I should not modify that file instead of creating ~/.config/Element/config.json ...

Thatoo avatar Jun 01 '21 20:06 Thatoo

By the way, I found this setting quiet complicated to set. Why not adding an option inside "Audio and Video" call settings of Element, where we set Audio output and Input and Camera...?

Thatoo avatar Jun 02 '21 09:06 Thatoo

It's not exactly the same issue, but it seems like if I'm serving element-web locally, the config.json settings for

{
  "jitsi": {
    "preferredDomain": "jitsi.xxx.fr"
  }
}

doesn't seem to have any effect at all. It always connects to jitsi.riot.im. Is this expected?

cajus avatar Jan 10 '22 12:01 cajus

doesn't seem to have any effect at all. It always connects to jitsi.riot.im. Is this expected?

How are you creating your conferences?

t3chguy avatar Jan 10 '22 12:01 t3chguy

I'm inside of a private room and press the "call" button on top of the room chat. Then the jitsi widget loads, offering a button "Join conference". Pressing this button leads to a connection to jitsi.riot.im.

Sorry if I'm completely misunderstanding it - I'm currently in "getting started with matrix" mode ;-)

cajus avatar Jan 10 '22 13:01 cajus

Hi there, i see that some people is able to configure a self jitsi server using Jitsi preferred domain, so is the issue still open or have i missed some configuration ?

crjo avatar Jan 30 '24 07:01 crjo

camelCase "preferredDomain" works for me, snake_case "preferred_domain" not. But camelCase is deprecated says https://github.com/element-hq/element-web/blob/develop/docs/config.md

photoninger avatar May 29 '24 14:05 photoninger

Hmm both should work in config.json, only camel in well-known/matrix/client

image

t3chguy avatar May 29 '24 14:05 t3chguy

config.json Good evening, everyone! I have the same problem. I'm launching element web in docker. The config file is attached.json from docker itself. I added it and tried to add preferred Domain and preferred_domain

It opens anyway https://meet.element.io/

Thank you for any help!

elchako avatar Jun 20 '24 19:06 elchako

config.json Good evening, everyone! I have the same problem. I'm launching element web in docker. The config file is attached.json from docker itself. I added it and tried to add preferred Domain and preferred_domain

It opens anyway https://meet.element.io/

Thank you for any help!

Hi,

From our experience, that depends on the client you use :

  • Element-web : configuration is read from config.json file on server
  • Element-desktop : configuration is read from config.json file on user computer
  • Other : if no local config.json found, it reads /.well-known/matrix/client (this must be hosted at : https://example.com/.well-known/matrix/client, your matrix ID being @my.name:example.com) described there image

And it depends how you are starting a call.

We found that in a new room if you add the Jitsi Widget and then start a call from the widget you open meet.element.io If you start a call without adding the widget, it's added automaticaly and you open the jitsi from config.json.

crjo avatar Jun 28 '24 08:06 crjo

@crjo Thank you for the full answer!

elchako avatar Jun 28 '24 13:06 elchako

Yeah if you add the widget manually then https://github.com/element-hq/element-integration-manager does not respect your config and does always use meet.element.io

t3chguy avatar Jul 01 '24 09:07 t3chguy