Skip to content

Commit

Permalink
Merge pull request #316 from open-craft/jill/auth_mech
Browse files Browse the repository at this point in the history
CRI-171 Makes the mongo authentication mechanism configurable from the environment
  • Loading branch information
Bill DeRusha authored Apr 27, 2020
2 parents cd26759 + fafb9e8 commit a228f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis/docker-compose-travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
container_name: forum_testing
volumes:
- ..:/edx/app/forum/cs_comments_service
environment:
MONGOID_AUTH_MECH: ""
forum:
extends: forum-base
command: tail -f /dev/null
Expand Down
1 change: 1 addition & 0 deletions config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ common: &default_client
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
ssl: <%= ENV['MONGOID_USE_SSL'] || false %>
auth_source: <%= ENV['MONGOID_AUTH_SOURCE'] || '' %>
auth_mech: <%= ENV['MONGOID_AUTH_MECH'].nil? ? ':scram' : ENV['MONGOID_AUTH_MECH'] %>

common_uri: &default_uri
uri: <%= ENV['MONGOHQ_URL'] %>
Expand Down

0 comments on commit a228f77

Please sign in to comment.