Adding SSL support / Tutorial for this

Hi folks,

I am totally new to this rocket chat thing.

What have I done?

Installed Ubuntu Server (22.04LTS) as virtual machine inside of a domain. The machine isn’t added to the domain yet. However, I set a A record on the DNS service in windows server, to access the server via name.

What is actually working:

I can access rocket chat over IP (http://xxx.xxx.xxx.xxx:3000).
I can access rocket chat over domain (http://chat.domain.com:3000).

I have seen caddy and my thought was: Create idea!

I followed this “guide”:

I have seen this

too.

But nothing works.

I am confused.

I have seen a lot of “tutorials” where was written: “The caddyfile should look like this or this”. In my case…These files where totally blank.

The one which you can access via nano caddyfile in the home directory and the one, which is in /var/snap/rocketchat-server/current.

Is this normal?

Now my questions:

Where can I configure that rocket chat works with the URL chat.domain.com instead of chat.domain.com:3000?

Which caddyfile of the two has to be configured?

What is the configuration?

Actually I have written there:

https://chat.domain.com
tls self_signed
localhost:3000 {
websocket
transparent
}

Where can I implement my own SSL certificate? I have a wildcard certificate for the domain.

The last question is not important.

More important is to get this thing flying with https.

Many thanks in advance!

Hi @macmirscho , indeed this documentation is missing, but this might actually need a snap upgrade to work.

Ftr, the caddyfile should be in /var/snap/rocketchat-server/current/Caddyfile.

There is no way to configure cert storage at the moment. I’ll add a task and see if we can prioritize next week :slight_smile:

Thanks again !

Hi @debdut.chakraborty !

Thanks for the reply.

I wrote this in the caddy forum, too. There they said, it’s an old caddy configuration previous version 2.x.

But, where can I find an example for a caddy v2. config? I can’t find anything.