Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

feat: Federation over proxy #211

Closed
ch0ccyra1n opened this issue Dec 7, 2023 · 4 comments
Closed

feat: Federation over proxy #211

ch0ccyra1n opened this issue Dec 7, 2023 · 4 comments

Comments

@ch0ccyra1n
Copy link

Summary

I think it would be great to add support for using a proxy for outgoing connections (i.e. federation). As I understand it, neither Misskey nor any of its forks actually allow you to do this as an admin, or if they do it's very poorly documented.

Purpose

My particular use-case for this is to federate with some fediverse instances which only exist on Tor. It's a concept I'm very passionate about because one of the downsides to the current way the fediverse works is that people are required to have a domain name in order to create a server. Allowing federation over Tor (or any proxy) would improve interoperability between more instances.

For examples of this in other fediverse software:

@ch0ccyra1n ch0ccyra1n changed the title Federation over proxy (both HTTP and SOCKS) feat: Federation over proxy (both HTTP and SOCKS) Dec 7, 2023
@ch0ccyra1n ch0ccyra1n changed the title feat: Federation over proxy (both HTTP and SOCKS) feat: Federation over proxy Dec 7, 2023
@Mar0xy
Copy link
Contributor

Mar0xy commented Dec 7, 2023

This is out of scope for this project but misskey does support being hosted on tor via nginx proxy which also applies to sharkey see this japanese post about it: https://blog.moe233.net/posts/2246a551/

@ch0ccyra1n
Copy link
Author

Interesting! I suppose it might be something which would be good to translate and bring over to the Sharkey documentation. Closing this issue since as you stated it's already possible.

@Mar0xy
Copy link
Contributor

Mar0xy commented Dec 7, 2023

Interesting! I suppose it might be something which would be good to translate and bring over to the Sharkey documentation. Closing this issue since as you stated it's already possible.

Might be worth doing in the future.

@dakkar
Copy link
Contributor

dakkar commented Dec 7, 2023

To be clear: that post describes how to serve a misskey instance over Tor. That's inbound connections: the rest of Tor talking to your *key.

If what you want is to proxy outbound connections (your *key instance talking to the rest of the Internet/Tor), https://github.com/transfem-org/Sharkey/blob/develop/.config/example.yml#L180-L192 these are the relevant bits of configuration

Yes, you don't get to say "use the proxy for this remote instance but not for this other one". If you need that, configure your proxy to route requests differently based on the remote host.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants