Skip to content

How to use a different domain name for Akkoma and the users it serves

Akkoma users are primarily identified by a handle, and you might want this identifier to be the same as your email or jabber account, for instance. However, in this case, you are almost certainly serving some web content on already, and you might want to use another domain (say for Akkoma itself.

Akkoma supports that, but it might be tricky to set up, and any error might prevent you from federating with other instances.

If you are already running Akkoma on, it is no longer possible to move it to

Account identifiers

It is important to understand that for federation purposes, a user in Akkoma has two unique identifiers associated:

  • A webfinger acct: URI, used for discovery and as a verifiable global name for the user across Akkoma instances. In our example, our account's acct: URI is
  • An author/actor URI, used in every other aspect of federation. This is the way in which users are identified in ActivityPub, the underlying protocol used for federation with other Akkoma instances. In our case, it is

Both account identifiers are unique and required for Akkoma. An important risk if you set up your Akkoma instance incorrectly is to create two users (with different acct: URIs) with conflicting author/actor URIs.


As said earlier, each Akkoma user has an acct: URI, which is used for discovery and authentication. When you add, a webfinger query is performed. This is done in two steps:

  1. Querying (where the domain of the URL matches the domain part of the acct: URI) to get information on how to perform the query. This file will indeed contain a URL template of the form{uri} that will be used in the second step.
  2. Fill the returned template with the acct: URI to be queried and perform the query:

Configuring your Akkoma instance


Configuring Akkoma

Akkoma has a two configuration settings to enable using different domains for your users and Akkoma itself. host in Pleroma.Web.Endpoint and domain in Pleroma.Web.WebFinger. When the latter is not set, it defaults to the value of host.

Be extra careful when configuring your Akkoma instance, as changing host may cause remote instances to register different accounts with the same author/actor URI, which will result in federation issues!

config :pleroma, Pleroma.Web.Endpoint,
  url: [host: ""]

config :pleroma, Pleroma.Web.WebFinger, domain: ""
  • domain - is the domain for which your Akkoma instance has authority, it's the domain used in acct: URI. In our example, domain would be set to
  • host - is the domain used for any URL generated for your instance, including the author/actor URL's. In our case, that would be

Configuring WebFinger domain

Now, you have Akkoma running at as well as a website at If you recall how webfinger queries work, the first step is to query, which will contain an URL template.

Therefore, the easiest way to configure is to redirect /.well-known/host-meta to

With nginx, it would be as simple as adding:

location = /.well-known/host-meta {
       return 301$request_uri;

in's server block.