Skip to content

Instantly share code, notes, and snippets.

@agrueneberg
Last active April 30, 2023 22:00
Show Gist options
  • Save agrueneberg/5693181 to your computer and use it in GitHub Desktop.
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