Difference between revisions of "Rocket.Chat"
From Jon's Wiki
Line 1: | Line 1: | ||
− | Host your own Slack. | + | Host your own Slack. Install required bits on Ubuntu 14.04, tweak npm version: |
sudo apt-get install npm mongodb-server curl graphicsmagick | sudo apt-get install npm mongodb-server curl graphicsmagick | ||
Line 36: | Line 36: | ||
127.0.0.1 your-internet-hostname.com | 127.0.0.1 your-internet-hostname.com | ||
+ | |||
+ | Get [[letsencrypt]] to handle the SSL. |
Revision as of 04:26, 15 April 2016
Host your own Slack. Install required bits on Ubuntu 14.04, tweak npm version:
sudo apt-get install npm mongodb-server curl graphicsmagick sudo npm install -g n sudo n 0.10.40
Then install it:
curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tar.gz tar -zxf rocket.chat.tar.gz cd bundle/programs/server npm install cd ../..
Now run it (probably in an init script or wherever):
export ROOT_URL=http://your-internet-hostname.com/ export MONGO_URL=mongodb://localhost:27017/rocketchat export PORT=3000 node main.js
Then proxy apache2 (or nginx) at it:
<VirtualHost *:80> ServerName your-internet-hostname.com ErrorLog /var/log/rocketchat/error.log CustomLog /var/log/rocketchat/access.log combined ProxyRequests Off ProxyPreserveHost On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost>
You may need to add your-internet-hostname.com to /etc/hosts if your IP doesn't directly resolve to the box it's on (e.g. behind a router, in a container, etc.)
127.0.0.1 your-internet-hostname.com
Get letsencrypt to handle the SSL.