Skip to main content

Nginx Configuration

To securely expose the Evolution API on the web, you can configure Nginx as a reverse proxy.

Installing Nginx

Install, start, and enable Nginx:
If the message “Active: active (running)” appears, Nginx is working correctly.

Nginx Configuration

Remove the default Nginx configuration:
Create a new configuration file:
Add the following configuration:
Reload Nginx to apply the changes:
If necessary, make the nginx user the owner of the web directory:
To configure a Virtual Host, create a configuration file:
Add the following configuration:
Create a symbolic link to enable the configuration:
Reload Nginx:

Install Certbot for SSL Certificate

To secure your Evolution API with SSL, install Certbot:

Configure SSL with Certbot

To configure SSL, use the command:
If the process is successful, you will see the message “Congratulations! You have successfully enabled HTTPS”.