Skip to content

Instantly share code, notes, and snippets.

@buymed-hoangpham
Created May 2, 2020 09:16
Show Gist options
  • Save buymed-hoangpham/1c600c8cca07b0149c941aff37b6715f to your computer and use it in GitHub Desktop.
Save buymed-hoangpham/1c600c8cca07b0149c941aff37b6715f to your computer and use it in GitHub Desktop.

Tạo một cluster MongoDB: link

White list IP addresses

  • Chỉ có thể kết nối đến một cluster từ một địa chỉ IP đáng tin cậy.
  • Whitelist là một list các địa chỉ IP đó
  • Bạn phải thêm địa chỉ IP của mình vào trước khi muốn truy cập đến cluster.

Tạo databse user cho cluster

  • Bạn phải tạo db user để truy cập vào cluster
  • Atlas yêu cầu người dùng phải xác thực là một MongoDB db user để truy cập cluster
  • Database user và Atlas user là 2 khái niệm khác nhau:
  • DB user có thể truy cập vào DB được host trên Atlas
  • Atlas user có thể login vào Atlas nhưng ko thể truy cập MongoDB db. Lưu ý: Nếu tạo password có kí tự đặc biệt thì phải encode trc, hướng dẫn ở đây.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment