Kategorie: Linux

Rocket.Chat Server and Ubuntu 22.04

The guide below describes how to install Rocket.Chat on Ubuntu 22.04 It's easy to install with the Snap package manager.
Feel free to read.

To begin with, we update the package repositories and the system itself.

apt-get update -y
apt-get upgrade -y

Let's search for the package in the snap:

sudo snap search rocketchat-server

And we install it:

sudo snap install rocketchat-server

We add port to the firewall, if used:

sudo ufw allow 3000

We now go in the browser under :

our IP address:3000 and we do the initial configuration and create an administrator account:

To go to the administration panel, go to the address:

http://naszadresip:3000/admin

if we want our chat to be not only available at our IP address, we will use nginx as a proxy.

We install nginx

sudo apt install nginx

we create a vhost:

sudo nano /etc/nginx/conf.d/rocketchat.conf

content:

 server {
        listen 80;
        server_name czat.domena.pl;

        error_log /var/log/nginx/rocketchat_error.log;

        location / {
            proxy_pass http://127.0.0.1:3000/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            We run it in the system;
            proxy_set_header X-Forwarded-Proto http;
            proxy_set_header X-Nginx-Proxy true;
            proxy_redirect off;
        }
    }

We restart nginx and run it on the system:

sudo systemctl restart nginx
sudo systemctl enable nginx

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu