element-web: Unable to deploy .well-known file to disable E2EE by default. Consider config.json alternative

Description

Trying to implement https://github.com/vector-im/riot-web/pull/13914 I run into an issue.

I’ve added the json section in https://matrix.corporate.local/.well-known/matrix/client:

{"m.homeserver": {"base_url": "https://matrix.corporate.local/"}, "m.identity_server": {"base_url": "https://matrix.corporate.local"}, "im.vector.riot.e2ee": {"default": false}}

and also in config.json of riot

    "default_server_config": {
        "m.homeserver": {
            "base_url": "https://matrix.corporate.local",
            "server_name": "Corporate Local"
        },
        "m.identity_server": {
            "base_url": "https://matrix.corporate.local"
        },
        "im.vector.riot.e2ee": {
            "default": false
        }

Now my question is if that isn’t enough and if not if we could please have the option to specify this via config.json of riot as well since that doesn’t seem to work right now(?).

Because our synapse is running on matrix.corporate.local in a corporate environment where corporate.local points to the active directory servers on which I can’t and also don’t want to run a webserver to just serve a .well-known for the domain.

Steps to reproduce

Version information

  • Platform: web (in-browser)

For the web app:

  • Browser: Chrome, Firefox latest versions
  • OS: Windows, Linux
  • URL: self hosted, latest riot web 1.6.6-rc.1

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 1
  • Comments: 30 (15 by maintainers)

Most upvoted comments

I think maybe my browser have this cached, if I try in another browser, I actually do get a CORS error.

Man, this one is all on me, thank you so much for your help, and sorry to have wasted your time.

Maybe I should write a bridge to chat via GitHub issue comments 😉

It does it at app launch and every 2h whilst running. Are you definitely looking at the right logs? If your Synapse is running at synapse.domain.org but your usernames are @something:domain.org then the well-known is at https://domain.org/.well-known/matrix/client

oops, didn’t realise you already changed

We’ll track this as a suggestion for now. I would helpful to hear from other deployments that might also be in this situation of being unable to deploy .well-known so we can consider alternative options.