Skip to content

Commit 7d56e98

Browse files
authored
Whitelist instructions
Add note that you need to whitelist all IP addresses in MongoDB Atlas for the fly.io app to work
1 parent 74fd049 commit 7d56e98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/3/en/part3d.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ It is also vital to follow continuously the server logs. The problem became obvi
133133

134134
The database url was _undefined_, so the command *fly secrets set MONGODB\_URI* was forgotten.
135135

136+
You will also need to whitelist the the fly.io app's IP address in MongoDB Atlas. If you don't MongoDB will refuse the connection.
137+
138+
Sadly, fly.io does not provide you a dedicated IPv4 address for your app, so you will need to allow all IP addresses in MongoDB Atlas.
139+
136140
When using Render, the database url is given by defining the proper env in the dashboard:
137141

138142
![render dashboard showing the MONGODB_URI env variable](../../images/3/render-env.png)

0 commit comments

Comments
 (0)