1. 23
    1. 10

      It seems a bit silly to set up a static file tree just for one well-known entry. You can also do something like this straight from the nginx config:

      location /.well-known/matrix {
        default_type application/json;
        return 200 "{ \"m.server\": \"matrix.dangerousdemos.net:443\" }";
      1. 3

        The path should be /.well-known/matrix/server, just in case anybody tries to use this.

        1. 1

          Ah, right. My bad!

      2. 2

        Huh, I didn’t know nginx could be configured to directly return text. Maybe the Matrix person who made the video didn’t know that either.

        1. 2

          cute :) i didn’t know!

        2. 1

          Could be. I just realised it’s also possible they didn’t want to complicate the instructions because the default config they tell you to copy already includes support for hosting files.