Hi list!

I have two Gnu Social installations on separate local network machines and
I would like them to speak to eachother through a PuSH (pubsubhubbub) 0.4
server that is also on my local network. I want them to do this because I
would in the future want to move this whole setup to the I2P network, which
is an encrypted overlay network, much like TOR. I have a basic install of
GNU Social and a manual .well-known/ setup for WebFinger which means I need
to setup an XML-file for every user. The servers are running on the
IP-addresses that follows:

GnuSocial 1: 192.168.1.165
GnuSocial 2: 192.168.1.245
PuSH-server: 192.168.1.107

The PuSH-server should be PubSubHubBub 0.4 compliant and is run by phubb:
https://github.com/cweiske/phubb

On both GNU Social installations I've setup

config["feedsub"]["fallback_hub"] = 'http://192.168.1.107/hub.php';
config["ostatus"]["hub"] = 'http://192.168.1.107/hub.php';

However, when subscribing to feeds between the hubs, I don't seem to use
the PuSH-hub but some internal thing. The documentation around these things
seems a bit sparse, so I haven't been able to find much info on how to go
about these things.

My WebFinger files look along these lines (for user "subhub1" on server
"192.168.1.165"):

<?xml version="1.0" encoding="UTF-8"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0";>
  <Subject>acct:[email protected]</Subject>
  <Alias>acct:[email protected]</Alias>
  <Alias>http://192.168.1.165/user/1</Alias>
  <Link rel="http://webfinger.net/rel/profile-page";
        type="text/html"
        href="http://192.168.1.165/user/1"/>

  <Link rel="http://schemas.google.com/g/2010#updates-from";
       type="application/atom+xml"
       href="http://192.168.1.165/api/statuses/user_timeline/1.atom"/>

  <Link rel="http://gmpg.org/xfn/11";
        type="text/html"
        href="http://192.168.1.165/user/1"/>

  <Link rel="describedby"
        type="application/rdf+xml"
        href="http://192.168.1.165/username/foaf"/>

  <Link rel="http://salmon-protocol.org/ns/salmon-replies";
        href="http://192.168.1.165/main/salmon/user/1"/>

  <Link rel="http://salmon-protocol.org/ns/salmon-mention";
        href="http://192.168.1.165/main/salmon/user/1"/>

  <Link rel="http://ostatus.org/schema/1.0/subscribe";
        template="http://192.168.1.165/main/ostatussub?profile={uri}"/>
</XRD>

Is there something I need to change in the above file/settings to get this
working?

When publishing an update on server 192.168.1.245 I get connected to the
PuSH-server which tells me that it's received a publish requests, but since
it has no track of any subscribers, nothing gets pushed to the other server.

Three questions:

1. How can I get a more universal WebFinger solution in place, so that I
can generate these files/the info dynamically?

2. How do I configure GNU Social OStatus plugin so that it uses my
PuSH-server (correctly)?

3. Is it possible to send all this via a proxy server, like localhost:8118 ?

Sorry for the massive mail, hope that the information is enough for you. If
not, do not hesitate to get back to me. :)

Kindest regards.
Mathias

Reply via email to