Hit the “i” button to go into edit mode, find the parameter “server_names_hash_bucket_size 64 ” and uncomment it by removing the “#” symbol. Now let’s configure Nginx for subsequent work with Rocket.Chat.įirst, you need to make changes to the Nginx configuration file by opening it in a text editor using the command: sudo vim /etc/nginx/nf You can check the operability of the cryptographic certificate renewal process using the command: sudo certbot renew -dry-run Certbot automatically adds a certificate renewal script to the task scheduler and the script runs twice a day, automatically renewing any cryptographic certificate that expires within thirty days. Please note that cryptographic certificates obtained through the Let’s Encrypt Certificate Authority are valid for ninety days. The next step is to choose whether you want the Nginx configuration file to have parameters automatically added to automatically redirect HTTP traffic to HTTPS. The next step is to choose whether you want to share the email address you provided earlier with the Electronic Frontier Foundation to receive newsletters. Press the “a” button, then “Enter” if you agree with the terms of use of the services provided. The next step is to read and accept the terms of use of the services provided. Next, specify the email address to which Let’s Encrypt will send notifications about the expiration of the cryptographic certificate and press the “Enter” button. Request a cryptographic certificate using the command: sudo certbot -nginx -d You will need to specify your domain or subdomain by which your Rocket.Chat will be available from the Internet. In this tutorial, the subdomain will be used to access Rocket.Chat from the Internet. Now, in order to increase the security level of the webserver, it is necessary to obtain a cryptographic certificate for the domain or subdomain, through which the Multicraft control panel will be accessible from the Internet. Next, install Node.js version 14.18.3 using the command: sudo n 14.18.3 Let’s install a tool called “n” so that we can change the version of Node.js with the command: sudo npm install -g inherits n Please note that this tutorial will use MongoDB as the database management system and Nginx as the web server.įor Rocket.Chat to work correctly, it is recommended to use Node.js version 14.18.3. Now let’s install the packages necessary for Rocket.Chat to work using the command: sudo apt install -y nginx certbot python3-certbot-nginx nodejs build-essential mongodb-org graphicsmagick Let’s make it possible to install Node.js through the package manager using the command: curl -sL | sudo bash. Update the local package index to the latest changes in the repositories using the command: sudo apt update Let’s add the MongoDB repository using the command: echo "deb focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt//mongodb-org-5.0.list Import the MongoDB public key using the command: wget -qO - | sudo apt-key add. To install MongoDB, you need to import the MongoDB public key and add a new repository. Please note that this tutorial will use MongoDB as the database management system and Nginx as the webserver. To obtain and subsequently renew a free SSL certificate, we will use the Let’s Encrypt certification authority, as well as the Certbot software client, which is designed to make it as easy as possible to obtain and renew a certificate through the Let’s Encrypt certification authority. We connect to the server on which you plan to install Rocket.Chat. TCP port 443 - to access the Rocket.Chat web interface.TCP port 80 - to receive a free cryptographic certificate through the Let’s Encrypt CA.Please note that you will need to open the following TCP ports to access your server: This guide describes how to connect to a server using the iTerm2 terminal emulator installed on the macOS operating system. If you plan to connect to the server using the Windows operating system, you can use PuTTY or MobaXterm. To install OpenSSH on a server, you can use the command: sudo apt install openssh-server In addition, OpenSSH must be installed on the server, and port 22 must be open in order to be able to connect to the server using the SSH protocol. You can read more about how to install Ubuntu Server 22.04 LTS in my guide “ Install Ubuntu Server 22.04 LTS”. In this guide, we will consider the case when you already have a server with the Ubuntu Server 22.04 LTS operating system installed on it. Rocket.Chat can be installed on your own server and then communicate using the web interface, personal computer, or mobile device. Rocket.Chat is an open-source messenger that supports group chats, file sharing, video conferencing, bots, and more. This article is for those looking for a detailed and straightforward guide on installing Rocket.Chat on Ubuntu Server.
0 Comments
Leave a Reply. |