Skip to content

Instantly share code, notes, and snippets.

@agrueneberg
Last active October 9, 2025 01:52
Show Gist options
  • Select an option

  • Save agrueneberg/5693181 to your computer and use it in GitHub Desktop.

Select an option

Save agrueneberg/5693181 to your computer and use it in GitHub Desktop.
A simple WebFinger resource for nginx (compatible with draft-ietf-appsawg-webfinger-14.txt).
location ~ /.well-known/webfinger {
add_header 'Access-Control-Allow-Origin' '*';
if ($arg_resource = "") {
return 400;
}
try_files /profiles/$arg_resource.json =404;
}
@agrueneberg
Copy link
Author

There is now a dedicated repository for this: https://github.com/agrueneberg/nginx-webfinger Please report issues there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment