https://github.com/agrueneberg/nginx-webfinger
A WebFinger resource for nginx.
https://github.com/agrueneberg/nginx-webfinger
Last synced: 2 months ago
JSON representation
A WebFinger resource for nginx.
- Host: GitHub
- URL: https://github.com/agrueneberg/nginx-webfinger
- Owner: agrueneberg
- License: mit
- Created: 2013-07-20T14:32:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-09-23T15:27:35.000Z (over 3 years ago)
- Last Synced: 2025-01-04T23:15:40.332Z (4 months ago)
- Size: 109 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nginx-webfinger
===============A WebFinger resource for nginx (compatible with [draft-ietf-appsawg-webfinger-14](http://tools.ietf.org/html/draft-ietf-appsawg-webfinger-14)).
To serve the files with the right `Content-Type`, add `application/json json;` to `/etc/nginx/mime.types`. Optionally, add `application/json` to `charset_types` if you want to specify the charset in the `Content-Type`.
Note that nginx doesn't decode URL parameters, so the file names have to be URL encoded as well: `?resource=acct%3Abob%40example.com` will look for a file called `/profiles/acct%3Abob%40example.com.json`. I suggest symlinks as a workaround to accept unencoded resource parameters.