Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Walko
funkwhale
Commits
310179c1
Verified
Commit
310179c1
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#192
: changelog
parent
5dcb81c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
changes/changelog.d/192.feature
+76
-0
76 additions, 0 deletions
changes/changelog.d/192.feature
with
76 additions
and
0 deletions
changes/changelog.d/192.feature
0 → 100644
+
76
−
0
View file @
310179c1
Use
nodeinfo
standard
for
publishing
instance
information
(
#192)
Nodeinfo
standard
for
instance
information
and
stats
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. warning
::
The
``/api/v1/instance/stats/``
endpoint
which
was
used
to
display
instance
dat
a
in the about page is removed in favor of the new
``/api/v1/instance/nodeinfo/2.0/``
endpoint.
In
earlier version, we where using a custom endpoint and format for
our
instance
information
and
statistics.
While
this
was
working,
this
was
not
compatible
with
anything
else
on
the
fediverse.
We
now
offer
a
nodeinfo 2.0 endpoint which provides, in a single place,
all
the
instance
information
such
as
library
and
user
activity
statistics,
public
instance
settings
(description,
registration
and
federation
status,
etc.).
We offer two settings to manage nodeinfo in your Funkwhale instance
:
1.
One
setting
to
completely
disable
nodeinfo,
but
this
is
not
recommended
as
the
exposed
dat
a
may be needed to make some parts of the front-end
work
(especially
the
about
page).
2.
One
setting
to
disable
only
usage
and
library
statistics
in
the
nodeinfo
endpoint.
This
is
useful
if
you
want
the
nodeinfo
endpoint
to
work,
but
don't
feel
comfortable
sharing
aggregated
statistics
about
your
library
and
user
activity.
To
make
your
instance
fully
compatible
with
the
nodeinfo
protocol,
you
need
to
to edit your nginx configuration file
:
.. code-block
::
# before
...
location
/.well-known/webfinger
{
include
/etc/nginx/funkwhale_proxy.conf;
proxy_pass http
:
//funkwhale-api/.well-known/webfinger;
}
...
# after
...
location
/.well-known/
{
include
/etc/nginx/funkwhale_proxy.conf;
proxy_pass http
:
//funkwhale-api/.well-known/;
}
...
You can do the same if you use apache
:
.. code-block
::
# before
...
<Location
"/.well-known/webfinger">
ProxyPass
${funkwhale-api}/.well-known/webfinger
ProxyPassReverse
${funkwhale-api}/.well-known/webfinger
</Location>
...
# after
...
<Location
"/.well-known/">
ProxyPass
${funkwhale-api}/.well-known/
ProxyPassReverse
${funkwhale-api}/.well-known/
</Location>
...
This
will
ensure
all
well-known
endpoints
are
proxied
to
funkwhale,
and
not
just
webfinger
one.
Links
:
- About nodeinfo
:
https
:
//github.com/jhass/nodeinfo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment