I have mongo DB container running in the cloud. now I can connect to my container using robot3t or mongo compass from my desktop application by simply providing this details.
hostname= 192.xx.xx.x (ipaddress)
username = myusername
password = mypassword
authdatabase = mydatabse
Now I want to connect to my mongo DB container not with an IP address but using my domain name like this below
hostname= mydomain.com (domain)
username = myusername
password = mypassword
authdatabase = mydatabse
I tried the stream module in Nginx 1.4 didn't get any result
I get an error like 13834 is already bind (98....)
stream {
server {
listen 13834;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass stream_mongo_backend;
}
upstream stream_mongo_backend {
server mydomain.com:13834;
}
}
please help me
more info:- I am using bitnami MongoDB image:4.0