Mastodon: Difference between revisions

From NixOS Wiki
imported>Mohe2015
(Created page with " == Hints for running in your local network for testing == If you get a Mastodon::HostValidationError when trying to federate with another ActivitySub instance in your local...")
 
imported>Mohe2015
No edit summary
Line 2: Line 2:
== Hints for running in your local network for testing ==
== Hints for running in your local network for testing ==


If you get a Mastodon::HostValidationError when trying to federate with another ActivitySub instance in your local network you need to allow Mastodon to access local ip addresses in outgoing http (federation) requests. To do this set the following environment variable:
If you get a Mastodon::HostValidationError when trying to federate with another ActivityPub instance in your local network you need to allow Mastodon to access local ip addresses in outgoing http (federation) requests. To do this set the following environment variable:
<code>ALLOWED_PRIVATE_ADDRESSES</code> to a comma-separated list of allowed ip addresses with the format specified in https://ruby-doc.org/stdlib-2.5.1/libdoc/ipaddr/rdoc/IPAddr.html.
<code>ALLOWED_PRIVATE_ADDRESSES</code> to a comma-separated list of allowed ip addresses with the format specified in https://ruby-doc.org/stdlib-2.5.1/libdoc/ipaddr/rdoc/IPAddr.html.
This is also documented in the Mastodon admin guide[https://docs.joinmastodon.org/admin/config/].
This is also documented in the Mastodon admin guide[https://docs.joinmastodon.org/admin/config/].

Revision as of 13:52, 17 April 2021

Hints for running in your local network for testing

If you get a Mastodon::HostValidationError when trying to federate with another ActivityPub instance in your local network you need to allow Mastodon to access local ip addresses in outgoing http (federation) requests. To do this set the following environment variable: ALLOWED_PRIVATE_ADDRESSES to a comma-separated list of allowed ip addresses with the format specified in https://ruby-doc.org/stdlib-2.5.1/libdoc/ipaddr/rdoc/IPAddr.html. This is also documented in the Mastodon admin guide[1].