Environment Configuration

This guide provides detailed instructions for configuring the environment necessary to run Rocket.Chat. Proper environment configuration ensures optimal performance, security, and functionality of Rocket.Chat.

circle-info

As of December 15, 2023, Rocket.Chat has ceased support for connections from cloud services and official mobile/desktop apps to workspaces running legacy versions outside our support window. Users on unsupported legacy servers are advised to upgrade to the latest Rocket.Chat version to ensure continued access to cloud, mobile, and desktop applications. Each Rocket.Chat version is supported for six months post-release.

Prerequisites

Before proceeding with the environment configuration, ensure the following prerequisites are met:

Configuration Steps

1. Setting Environment Variables

Environment variables can be used to influence the workspace deployment or the workspace settings. Configuring the environment variables depends on the method of deployment. Generally, you can follow these steps:

  • Set Deployment Environment Variables: In the .env or the compose.yml file (for Docker deployment), set values for the mandatory variables such as ROOT_URL, PORT, and MONGO_URL. You can also set values for the optional variables according to your requirements.

    • Modify Deployment Environment Variables: Modify the variables you need and deploy the workspace again for the changes to take effect.

    • See Environment Variablesarrow-up-right for detailed information.

  • Settings Environment Variablesarrow-up-right: Configure the environment variables to manage the workspace settings.

2. Database Configuration

Rocket.Chat uses MongoDB. Configure the database connection:

3. Integrating External Services

Integrate external services like email, authentication, and file storage:

4. Security Settings

Enhance the security of your Rocket.Chat server:

Troubleshooting

Address common issues during environment configuration:

Proper environment configuration is crucial for a stable and efficient Rocket.Chat deployment. By following these steps, you can ensure that your Rocket.Chat server is well-configured, secure, and ready for use.

Last updated