How to install the RocketChat server on Fedora 28
-
Installing Rocket.Chat is simple on Fedora because the Rocket.Chat team's recommend method to install it yourself is with their
snap
package.Starting from a minimal install of Fedora 28 this is all you need to do.
As always, run from the root user, or prepend these commands with
sudo
.- Install
snapd
dnf install -y snapd
- Install the RocketChat server
snap install rocketchat-server
- Open the firewall
firewall-cmd --add-port=3000/tcp --permanent firewall-cmd --reload
That's it, you can now connect to your RocketChat instance with a client.
- Install
-
Now most people will not want their server live on the internet and all that.
And most will also want it behind a reverse proxy.
I run my stuff behind a Nginx reverse proxy that is on another instance, not on the rocket chat server itself, but the process is the same either way.
This config came from @scottalanmiller's thread on install with
snap
on Ubuntu. I'll post mine once I finish setting it up.server { #client_max_body_size 80M; listen 443 ssl default_server; server_name my.server.com; ssl on; ssl_certificate /etc/letsencrypt/live/my.server.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/my.server.com/privkey.pem; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:3000; proxy_redirect off; } location /websocket { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Upgrade websocket; proxy_set_header Connection upgrade; } }
-
hi, thanks for the info, is there any new update on the matter??
can you share more info on how to setup rocket.chat and nginx on fedora 29 -
@GodfatherX64 said in How to install the RocketChat server on Fedora 28:
hi, thanks for the info, is there any new update on the matter??
can you share more info on how to setup rocket.chat and nginx on fedora 29Exactly the same procedure. I installed it a couple weeks ago on Fedora 29 using this guide.
-
which confg file to edit and put the above configs??
and is these config if the nginx on the same server as RocketChat or on another server?? -
@GodfatherX64 said in How to install the RocketChat server on Fedora 28:
hi, thanks for the info, is there any new update on the matter??
can you share more info on how to setup rocket.chat and nginx on fedora 29Nothing has changed, just start with Fedora 29 instead of 28.
-
@GodfatherX64 said in How to install the RocketChat server on Fedora 28:
which confg file to edit and put the above configs??
and is these config if the nginx on the same server as RocketChat or on another server??NGinx config file. So whatever you want to name it, but something like /etc/nginx/conf.d/rocket.conf
And it goes wherever your reverse proxy is. Could be in either place.
-
@GodfatherX64 said in How to install the RocketChat server on Fedora 28:
which confg file to edit and put the above configs??
and is these config if the nginx on the same server as RocketChat or on another server??It's not a config file to edit, it's a new config file. The file is going to be in
\etc\nginx\conf.d\
and it will be calledmyfilename.conf
(I like using FQDN.conf as it makes telling what config file is for which server easy.) So I have\etc\nginx\conf.d\irc.travisdh1.net.conf
for my Rocket.Chat instance. I recommend usingnginx -t
after changing or adding a config file.The Nginx proxy can be on the same host or a different host. Just change the ip address for the
proxy_pass http://127.0.0.1:3000
to your actual IP address. -
thanks so much guys, its up and running
-
@GodfatherX64 said in How to install the RocketChat server on Fedora 28:
thanks so much guys, its up and running
Awesome