Since I'm using a reverse proxy, I've to additionally set a maximum upload limit and avoid issues when uploading images on Docker. Image uploads can be affected by low upload size limits on Rocket.Chat. Now, suppose you want to use Permitted Upload Limits within the nginx docker compose directory with the following content and save it: rewrite ^/(.*)$ $1 permanent ![]() Similarly, if you host it at users visiting must be redirected (just how Linode's domain works). But if not, depending on your SEO preferences, you may want to set redirection of users visiting must be redirected to it (just how GitHub's domain works). In case you want to self-host Rocket.Chat on a sub-domain, this section is irrelevant and you can move on to this next section. WWW/non-WWW Redirection (Skip for sub-domains) Additionally, I will describe how to enable www/non-www redirection(skip it for sub-domains) and increase permitted upload limits via Nginx. How to handle SSL certificates has been covered in the link shared above in the requirements section. I use Jwilder reverse proxy method here because it takes into account SSL certificates, www/non-www redirection and allowed upload limits. Step 1: Preparing the deployment of Rocket.Chat server var/run/docker.sock:/var/run/docker.sock:roīefore you deploy the above config, do check the reference if needed, and also ensure the preparative steps as discussed below. Image: jrcs/letsencrypt-nginx-proxy-companionĬontainer_name: letsencrypt-proxy-companion client_max_upload_nf:/etc/nginx/conf.d/client_max_upload_nf var/run/docker.sock:/tmp/docker.sock:ro Make sure you change DEFAULT_EMAIL to your preference. Use the following Nginx configuration when you run Docker Compose, named as docker-compose.yml inside a separate directory. ![]() However, you must have this setup on your system. ![]() This topic has previously been covered in detail in the tutorial linked below, so I am not going to repeat the same steps here. This is beneficial if you want to have more than one Rocket.Chat or some other web service installed on the same server. Other than that, you also need to have Nginx reverse proxy setup. You may refer to these tutorials to get instructions for Ubuntu. You need to have Docker and Docker Compose installed on your system.
0 Comments
Leave a Reply. |