Now let’s give users in the chat rooms the ability to interact with the Raspberry Pi. It may also be necessary to clear the storage cache on your mobile app. I found that the mobile apps will not work unless this setting is correct. If you don’t get the warning you can confirm the setting under Administration – Settings – General. You should get a warning that the Site URL has changed. Instead of localhost, paste the Ngrok URL into your web browser address and log back into Rocket.Chat. Now you can start Ngrok with the http switch set to port 3000. Paste in the token we just copied to the clipboard from the Ngrok website. Run Ngrok with the authtoken switch to set the authentication token. If necessary, it can be reset under the Admin tab.Ĭreate a new folder called ngrok and CD into it. You will need it later to enable HTTPS access for your chat server. On the Ngrok Dashboard – Auth page, copy the provided Tunnel AuthToken to the clipboard. Sign up for a free Ngrok account and then go to the download page and download the Linux/ARM version of Ngrok. It may not seem like a big deal if someone hacks your Pi, but once in, hackers can use it as a platform to attack other devices on your network or conduct other illegal activity. It is still a good idea to make sure your Pi is secure which is beyond the scope of this tutorial, but at the very least make sure you change the default password to a tough password, disable any unused services, throttle login attempts, use public-key or two-factor authentication and regularly update and back up your Pi. In other words, it’s a slightly safer way to put your chat server on the Internet. Instead there is a free service called Ngrok which provides secure introspectable tunnels to your localhost. For security reasons, I don’t ever recommend opening ports on your home or business router. You’ll probably want other people on the Internet to access your chat server. CD to rocketchat/bundle/programs/server folder and type meteor/dev_bundle/bin/npm install. It is necessary to replace the placeholders for the database user credentials.īack in terminal, the Node.js package manager ( npm) will be used to install the Rocket.Chat dependencies. You will need the URI later so copy it to the clipboard. ![]() mLab will provide a URI to access your new database. ![]() Afterwards, create a database user account and give it write access to the new database. Sign up and create a free mLab sandbox database. Their free sandbox package provides a single database with 500 megabytes and no credit card is required. (previously known as Mongo Lab) provides a cloud database service. MongoDB could be installed on the Pi, but because of the high write volume it’s probably not too good for your SD card and there is a high risk of data corruption. tgzĪ MongoDB database is required to store our chat data. Mkdir rocketchat cd rocketchat curl https :// cdn - download.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |