Question

How can i allow remote access for MongoDB in Django One Click Image?

Posted March 4, 2017 3.6k views
NginxMongoDBUbuntuDjango

How can i allow remote access for MongoDB if i am using Django One Click image which is using Nginx web server?
Can i set UFW (which is disabled by default) ?

i am using MongoDB for local testing, which involve read & write data from django apps in local machines

if i am using UFW, does it affect the normal use of the django droplet ?

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

FYR

The below tutorial can guide with allowing remote access for MongoDB :

https://www.digitalocean.com/community/tutorials/how-to-configure-remote-access-for-mongodb-on-ubuntu-20-04

Regards,
Rajkishore

by Mark Drake
This tutorial walks you through configuring a MongoDB installation to securely allow access from a trusted remote computer. This will involve updating your firewall rules to provide the remote server access to MongoDB's default port and changing Mongo's configuration file to update its IP binding setting.