• poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 months ago

    You can’t have them all on the same webfinger on the root domain, but having them separately on subdomains should work without issues.

    • thisisawayoflife@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      I was hoping that pixelfed would request a different rel than mastodon. I’m pretty sure I have my webfinger configured to use myemail@mydomain.tld, which works fine for diaspora and mastodon because they operate off different resources - but I think pixelfed copies mastodon so requesting the mastodon rel gives my mastodon user. That seems like a bug in pixelfed, to me.

      • poVoq@slrpnk.net
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 months ago

        Maybe there is some kind of workaround, but I have not seen it so far.

          • poVoq@slrpnk.net
            link
            fedilink
            English
            arrow-up
            2
            ·
            11 months ago

            Yes, but I think this still would not allow having two different AP services on the same root domain.

            For that it would need to do some webfinger multiplexing and also the s2s connections would need to be somehow marked according to what specific type of AP software they are supposed to address.

            • thisisawayoflife@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              11 months ago

              If a service was serving the webfinger, it could guess which account needed to be returned based on the requesters user agent. If the UA was mastodon, it could return the mastodon link rel, if pixelfed then return that link rel, etc.

              Might be able to rig it with some more complex conditional logic and regex in nginx as a bandaid. AFAICT, the webfinger spec doesn’t really allow for this, which if true, was pretty short sighted.

              I haven’t considered more in depth S2S connections. I’ll have to watch the traffic logs and see what exactly is being requested and see if all of it can be directed accordingly. I see now you commented on that issue. Also, to be clear, I’m still running the services in subdomains, but I’m trying to use user@domain.tld as the discovery account.

              • poVoq@slrpnk.net
                link
                fedilink
                English
                arrow-up
                1
                ·
                11 months ago

                Exactly… But as I wrote it might be possible with some nginx multiplexing hack.

                • lemmyvore@feddit.nl
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  11 months ago

                  I’m not sure I understand why hacks are needed. In order to run two AP services you either need two different [sub]domains, or two different URLs on the same domain. In both cases the webfinger URL will be specific to the AP [sub]domain or URL. So the problem is already solved.

                  How would this “multiplexed” webfinger URL even look?

                  • poVoq@slrpnk.net
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    11 months ago

                    The webfinger would be the same, but once the server gets contacted it would need to multiplex requests on some sort of identifier.