Jump to content

Mastodon: Difference between revisions

No change in size ,  17 April 2021
no edit summary
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/].
Anonymous user