rm db authentication

This commit is contained in:
songmeo 2021-03-31 20:59:20 +03:00
parent 35cc25848c
commit 9adf269528

View File

@ -14,7 +14,6 @@ app = Flask(__name__)
#mongodb = MongoClient('mongodb://172.21.27.1,172.21.27.2,172.21.27.3:27017/', replicaSet="kspace-mongo-set").kspace_accounting #mongodb = MongoClient('mongodb://172.21.27.1,172.21.27.2,172.21.27.3:27017/', replicaSet="kspace-mongo-set").kspace_accounting
mongodb = MongoClient(const.MONGO_URI) mongodb = MongoClient(const.MONGO_URI)
mongodb = mongodb.get_default_database() mongodb = mongodb.get_default_database()
mongodb.authenticate("kspace_accounting", os.environ["MONGO_PASSWORD"])
DOORBOY_SECRET = os.environ["DOORBOY_SECRET"] DOORBOY_SECRET = os.environ["DOORBOY_SECRET"]