You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
techknowlogick babab0bf5e
Add nodeinfo endpoint for federation purposes (#16953)
Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities.

Two endpoints are required:
1. `/.well-known/nodeinfo` which informs client where it can find the location of the location of its metadata (including which version of the schema is used)
2. the endpoint which exposes the metadata in json format according to schema.

Notes:
* `openRegistrations` is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances
* to limit data leakage I also propose to not include the `usage` field (note it is required so it should be included, but left as empty).

More info:
https://github.com/jhass/nodeinfo
https://github.com/jhass/nodeinfo/tree/main/schemas/2.1
http://nodeinfo.diaspora.software/protocol.html
3 years ago
..
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
auth Add bundle download for repository (#14538) 3 years ago
avatar refactor: move from io/ioutil to io and os package (#17109) 3 years ago
base Fixed assert statements. (#16089) 3 years ago
cache Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
charset refactor: move from io/ioutil to io and os package (#17109) 3 years ago
context Move twofactor to models/login (#17143) 3 years ago
convert Move login related structs and functions to models/login (#17093) 3 years ago
cron Refactor: Move login out of models (#16199) 3 years ago
csv Fixes #16557 - duplicate csv import (#16631) 3 years ago
doctor Nicely handle missing user in collaborations (#17049) 3 years ago
emoji Run processors on whole of text (#16155) 3 years ago
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
generate switch to maintained lib (#16532) 3 years ago
git Don't return binary file changes in raw PR diffs by default (#17158) 3 years ago
gitgraph Move login related structs and functions to models/login (#17093) 3 years ago
graceful refactor: move from io/ioutil to io and os package (#17109) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Prevent panic in Org mode HighlightCodeBlock (#17140) 3 years ago
httpcache Add ETag header (#15370) 3 years ago
httplib refactor: move from io/ioutil to io and os package (#17109) 3 years ago
indexer Move login related structs and functions to models/login (#17093) 3 years ago
json Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
lfs refactor: move from io/ioutil to io and os package (#17109) 3 years ago
log refactor: move from io/ioutil to io and os package (#17109) 3 years ago
markup Prevent panic in Org mode HighlightCodeBlock (#17140) 3 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Separate open and closed issue in metrics (#16637) 3 years ago
migrations Move login related structs and functions to models/login (#17093) 3 years ago
nosql Fix setting redis db path (#15698) 3 years ago
notification Move db related basic functions to models/db (#17075) 3 years ago
options refactor: move from io/ioutil to io and os package (#17109) 3 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private refactor: move from io/ioutil to io and os package (#17109) 3 years ago
process Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
public refactor: move from io/ioutil to io and os package (#17109) 3 years ago
queue refactor: move from io/ioutil to io and os package (#17109) 3 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repofiles Move db related basic functions to models/db (#17075) 3 years ago
repository Move login related structs and functions to models/login (#17093) 3 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
session Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
setting Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
ssh Second attempt at preventing zombies (#16326) 3 years ago
storage refactor: move from io/ioutil to io and os package (#17109) 3 years ago
structs Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
svg refactor: move from io/ioutil to io and os package (#17109) 3 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Fix bug of migrated repository not index (#16991) 3 years ago
templates refactor: move from io/ioutil to io and os package (#17109) 3 years ago
test Move db related basic functions to models/db (#17075) 3 years ago
timeutil Fix display since time round (#14226) 3 years ago
translation Use index of the supported tags to choose user lang (#15452) 3 years ago
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Handle too long PR titles correctly (#16517) 3 years ago
validation Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
web Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 3 years ago