Learn how to configure your Redis instance to accept incoming connections.
Cloud Databases allow you to focus on building and deploying cloud applications while OVHcloud takes care of the database infrastructure and maintenance in operational conditions.
- a Public Cloud project in your OVHcloud account
- access to the OVHcloud Control Panel
- a Redis database running on your OVHcloud Cloud Databases (this guide can help you to meet this requirement)
Configure your Redis instance to accept incoming connections
Before making a connection, we need to verify that our Redis instance is correctly configured.
Log in to your OVHcloud Control Panel and open your
Public Cloud project. In the left-hand navigation menu, under Databases & Analytics, click on
Databases and select your Redis instance.
Step 1: Verify your user roles and password
Users tab. Verify that you have a user with sufficient rights and a password. If you don't remember the user's password, you can either create a new user or regenerate the password of an existing user. Be careful! By doing so you will need to update all the places where you already use this user/password pair.
In our example, we will create a user called redisUser and rights for:
* (for all keys)
+ping (for the ping command)
+info (for the info command)
+echo (for the echo command)
+get (for the get command)
+set (for the set command)
+client (for the client command)
* (for all channels)
Once created or updated, the user has to be ready and with the "Enabled" status in the Control Panel.
Follow this guide to learn more about users and roles capabilities and limitations.
Step 2: Authorize incoming connections from the Redis client
In this step, select the
Authorised IPs tab. IP addresses must be authorized here before they can connect to your database.
Add an IP address or IP address block (CIDR) opens a new window in which you can add single IP addresses or blocks to allow access to the database.
You can edit and retract database access via the
... button in the IP table.
Collect required information
General information tab to find the required login credentials in the
Login information section.
Visit the GitHub examples repository to find out how to connect to your database with several languages.