I’m interested in setting up my own instances for Lemmy, Mastodon, and Matrix.

Can I use the same https://domain.tld for all of them without any subdomains?

For example:
lemmyuser@mydomain.tld
mastodonuser@mydomain.tld
matrixuser@mydomain.tld

Will this work across all of my self-hosted instances, or do I need to append a subdomain for each, e.g., lemmyuser@lemmy.mydomain.tld?

  • Makr Alland@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    All those services use a protocol named WebFinger that allows for having the servers in different domains but showing the users as being in a main domain. For example, my self-hosted Synapse server is at matrix.domain.tld, but my users are all like user@domain.tld.

    Unfortunately I don’t really know how to set it all up manually, I just let Yumohost take care of managing it.

  • poVoq@slrpnk.net
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Matrix (or even easier XMPP) can coexist on the same domain with Lemmy or Mastodon, but with two ActivityPub services that is AFAIK not possible.

  • Thomas@lemmy.zell-mbc.com
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    It will work for Matrix, because that’s what I got. Required some .wellknown-host magic if I remember correctly.

    I don’t know if it’s possible for the other two. For Mastodon, in my case Akkoma, I went with social.mytld.com and lemmy.mytld.com for the Lemmy server I set up today.

  • Swimmerman96@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    You are able to host all these services and more on the same domain. I do a similar thing with different services at different subdomains. I don’t believe the username@ portion can help point to different services, that syntax is usually associated with email addresses.

    I think the best way to go about it would be having different subdomains such as lemmy.domain.tld, matrix.domain.tld, etc.
    To accomplish that, I have a wildcard subdomain point to my server, my reverse proxy (Caddy) handles figuring out which subdomain maps to which service on top of handling TLS certificates for me.

    • RiotEarp@lemmy.studio
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Good to know and I was hoping that’s the case. As soon as my new domain resolves I’m going to install lemmy, matrix, and funkwhale.

      Are you running all of yours in containers?