- Issue created by @CWSmith1701
- π§πͺBelgium swentel
Can you tell me your handle? (user@domain) .. then I can have a look.
- πΊπΈUnited States CWSmith1701
Handle is supposed to be cwsmith@hybridized-concepts.com
- π§πͺBelgium swentel
This looks like a problem with the .well-known directory. Normally this should work:
https://hybridized-concepts.com/.well-known/webfinger?resource=cwsmith@h...
But it returns a 404. There is an issue at π An existing .well-known directory (as for Let's Encrypt) can prevent ActivityPub module's webfinger from working Active where people change something to .htaccess which existed in their .well-known directory, so that's maybe a pointer? Or maybe an nginx configuration issue?
e.g, for my server (running apache), this call to the webfinger to find my resource works fine and returns a json response:
https://realize.be/.well-known/webfinger?resource=swentel@realize.be
I do have an existing webfinger directory, so it doesn't sit in the way if it exists.
- πΊπΈUnited States CWSmith1701
I will check the Nginx config and that other bug. You would think that there shouldn't be an issue, but there's always something it seems.
- π§πͺBelgium swentel
.htaccess is only apache afaik, so yeah, that would be a bad pointer.
I see this in the nginx though, which, If I understand, will block calls to it and not redirect to drupal.
location ~ /.well-known/webfinger { add_header 'Access-Control-Allow-Origin' '*'; if ($arg_resource = "") { return 400; } try_files /profiles/$arg_resource.json =404; }
Maybe the block with try_files line could be removed completely?
- πΊπΈUnited States CWSmith1701
Finally getting some error.log information
Still not finding the server. And the error log is saying the .well-known/webfinger folder isn't there.
But before I wasn't even seeing an error so there is that.
There is no .well-known folder in the docroot though, so that does seem to be a problem in itself. Wasn't one of the modules installed support for create that?
- π§πͺBelgium swentel
The folder doesn't even have to exist, path is defined by the webfinger module, cf https://git.drupalcode.org/project/webfinger/-/blob/2.0.x/webfinger.rout...
It is served by Drupal.
- πΊπΈUnited States mradcliffe USA
Also note that the site is detected already by FediDB, but probably not discoverable by actors without knowing the real actor id.
- πΊπΈUnited States CWSmith1701
OK, adding FediDB to my bookmarks file.
Looks like they say it's been available since April, which is nice.
So what would be preventing the traditional user name identifier from working?
- πΊπΈUnited States mradcliffe USA
It's what swentel mentioned. The server, nginx, is not allowing webfinger requests from .well-known/webfinger which is configured as a location served by nginx, not drupal.
- πΊπΈUnited States CWSmith1701
I see. So how should I modify the nginx conf to represent that?
- πΊπΈUnited States mradcliffe USA
Maybe try removing the
location ~ /.well-known/webfinger {
block entirely? - πΊπΈUnited States CWSmith1701
Did that. No more settings specify for the webfinger at all, still not being able to search the account by any URL I have attempted so far.
- πΊπΈUnited States mradcliffe USA
It seems to be working for me. I can search for you via acct:CWSmith@hybridized-concepts.com now on various fediverse applications including my own.
- πΊπΈUnited States CWSmith1701
OK, now after not trying for a couple of hours I can now find and follow that account as well.
I will accept that as a sign I have gotten this one working. Will document what I have in here and go from there.
Problem apparently solved.
- π§πͺBelgium swentel
Moving to webfinger module, it would be great indeed to have documentation what can or can not be in an Nginx configuration file!
- π§πͺBelgium swentel
Also, I can confirm, CWSmith@hybridized-concepts.com can be found on mastodon.