Difference between revisions of "Rocket.Chat"
From Jon's Wiki
(Created page with "Host your own Slack. Prerequisites on Ubuntu 14.04, tweak npm: sudo apt-get install npm mongodb-server curl graphicsmagick sudo npm install -g n sudo n 0.10.40 Then insta...") |
|||
Line 7: | Line 7: | ||
Then install it: | Then install it: | ||
− | curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tar.gz | + | curl -L <nowiki>https://rocket.chat/releases/latest/download -o rocket.chat.tar.gz</nowiki> |
tar -zxf rocket.chat.tar.gz | tar -zxf rocket.chat.tar.gz | ||
cd bundle/programs/server | cd bundle/programs/server | ||
Line 15: | Line 15: | ||
Now run it (probably in an init script or wherever): | Now run it (probably in an init script or wherever): | ||
− | export ROOT_URL=http://your-internet-hostname.com/ | + | export ROOT_URL=<nowiki>http://your-internet-hostname.com/</nowiki> |
export MONGO_URL=mongodb://localhost:27017/rocketchat | export MONGO_URL=mongodb://localhost:27017/rocketchat | ||
export PORT=3000 | export PORT=3000 | ||
Line 29: | Line 29: | ||
ProxyRequests Off | ProxyRequests Off | ||
ProxyPreserveHost On | ProxyPreserveHost On | ||
− | ProxyPass / http://localhost:3000/ | + | ProxyPass / <nowiki>http://localhost:3000/</nowiki> |
− | ProxyPassReverse / http://localhost:3000/ | + | ProxyPassReverse / <nowiki>http://localhost:3000/</nowiki> |
</VirtualHost> | </VirtualHost> | ||
Revision as of 04:25, 15 April 2016
Host your own Slack. Prerequisites on Ubuntu 14.04, tweak npm:
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