HTTPS / SSL setup via docker

Description

I followed the setup guide for docker and chose the production environment.
So my .env looks like this:

DOMAIN=mydomain.de
ROOT_URL=https://mydomain.de
RELEASE=8.0.1
# Change to true after you set your domain and valid lets encrypt email
LETSENCRYPT_ENABLED=true
LETSENCRYPT_EMAIL=cert@mydomain.de
TRAEFIK_PROTOCOL=https

However, when typing mydomain. de in a browser, I am redirected to http:// mydomain. de which states:

404 page not found

When manually changing http:// mydomain. de to https:// mydomain. de it states, that the connection is not safe, and asks me if I trust the website.

Additionally, it places a red triangle icon in front of the url.

What can I do to get an SSL Certificate and have all visitors to be redirected to 443?

Server Setup Information

  • Version of Rocket.Chat Server: 8.0.1
  • Operating System: Ubuntu
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -
  • NodeJS Version: v22.22.0
  • MongoDB Version: -
  • Proxy: traefik
  • Firewalls involved: no

Any additional Information

There are spaces in the URL, because new users can only add to links to their posts.

Please list the commands you used to start rocket.

Have you checked the traefik logs?