MongoDB and Mongoid in production
问题 I am deploying my first little app with MongoDB and Mongoid as a driver. What is the right secure way to use MongoDB in production? I mean in the development I have just started mongod and that's it - no username or password needed and that looks unsecure. Also Mongoid sets default configurations production: host: <%= ENV['MONGOID_HOST'] %> port: <%= ENV['MONGOID_PORT'] %> username: <%= ENV['MONGOID_USERNAME'] %> password: <%= ENV['MONGOID_PASSWORD'] %> database: <%= ENV['MONGOID_DATABASE'] %