Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ip whitelist #619

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Ip whitelist #619

wants to merge 3 commits into from

Conversation

ramonbmt
Copy link

¡¡¡¡ Warning, if not done correctly, the database could be exposed !!!!

expose mongo database, but use the firewall to block all IP address except the ones you like.
Useful for load balancing without the use of a database service. Also for use an external database inspection tool.

Example use:
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: '1.2.3.4',
username: 'root',
// pem: './path/to/pem'
// password: 'server-password'
// or neither for authenticate from ssh-agent
}
},

meteor: {
// TODO: change app name and path
name: 'app',
path: '../app',

servers: {
  one: {},
},

buildOptions: {
  serverOnly: true,
},

env: {
  // TODO: Change to your app's url
  // If you are using ssl, it needs to start with https://
  ROOT_URL: 'http:https://app.com',
  MONGO_URL: 'mongodb:https://localhost/meteor',
},

docker: {
  // change to 'kadirahq/meteord' if your app is not using Meteor 1.4
  image: 'abernix/meteord:base',
  // imagePort: 80, // (default: 80, some images EXPOSE different ports)
},

// This is the maximum time in seconds it will wait
// for your app to start
// Add 30 seconds if the server has 512mb of ram
// And 30 more if you have binary npm dependencies.
deployCheckWaitTime: 60,

// Show progress bar while uploading bundle to server
// You might need to disable it on CI servers
enableUploadProgressBar: false

},

mongo: {
port: 27017,
version: '3.4.1',
servers: {
one: {}
},
ipwhitelist:[
'0.0.0.0' //example ip
]
}
};

The only thing that changes from the original is the "ipwhitelist" parameter, it accepts multiple IPs. And if not present, the mongo docker uses the default configuration and mup won't try to expose it.

Ramon Sepulveda added 3 commits May 18, 2017 17:23
-se modifico para los diferentes localservers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant