Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ docker pull daocloud.io/0xbug/hawkeye
git clone https://github.com/0xbug/Hawkeye.git --depth 1
cd Hawkeye
docker build -t hawkeye .
docker run -ti -p 80:80 -e MONGODB_URI=mongodb://username:password@ip:27017/hawkeye -e MONGODB_USER= -e MONGODB_PASSWORD= -d hawkeye ## mongodb 需认证
docker run -ti -p 80:80 -e MONGODB_URI=mongodb://username:password@ip:27017/ -d hawkeye ## mongodb 需认证
docker run -ti -p 80:80 -e MONGODB_URI=mongodb://ip:27017 -d hawkeye ## mongodb 无认证

```
Expand Down
5 changes: 0 additions & 5 deletions server/config/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
client = MongoClient(MONGODB_URI, connect=False)
db = client.get_database('hawkeye')

if os.environ.get('MONGODB_USER'):
MONGODB_USER = os.environ.get('MONGODB_USER')
MONGODB_PASSWORD = os.environ.get('MONGODB_PASSWORD')
db.authenticate(MONGODB_USER, MONGODB_PASSWORD)

result_col = db.get_collection('result')
query_col = db.get_collection('query')
blacklist_col = db.get_collection('blacklist')
Expand Down