Diaspora Installation


I’ve trying to setup diaspora production and when the installation complete I have started the ./script/server. My curl through loopback IP gives results but public IP refused the connection.

( diaspora@ip-x.x.x.x:/etc/apache2/sites-enabled$ curl “You are being redirected.diaspora@ip-x.x.x.x:/etc/apache2/sites-enabled$” )

( diaspora@ip-x.x.x.x:/etc/apache2/sites-enabled$ curl http://x.x.x.x:3000
curl: (7) Failed to connect to port 3000: Connection refused

I have attached my diaspora.conf, diaspord.toml and database.yml herewith. Could someone please help me to resolve this.



First, please don’t send mails to all my private mail addresses, this doesn’t make me want to answer sooner if I’m spammed.

By default diaspora listens on a file socket at /path/to/diaspora/tmp/diaspora.sock, you have changed that in your diaspora.toml to which is when you don’t want to use a file socket for whatever reason (for most cases the file socket is better, that’s also why it’s the default). So it’s doing exactly what you told it to do, so I don’t know exactly what you want it to do. if you want it to listen on the main interface you would need to set that in the diaspora.toml, but that doesn’t make much sense because you need a nginx/apache for the static assets and uploaded files anyways, so it’s enough when the it then can proxy to diaspora on localhost or through the file-socket.

Also setting the url to the IP directly isn’t a great idea because you then will never be able to switch the IP (or you would need to re-create your account), you should use a domain for that. And as said, you shouldn’t access diaspora on port 3000 directly, instead use a reverse proxy which then also can access the static assets and uploaded files.