Reputation: 9
I have RH 3.6 installed and I try to configure it to work with replicaset but something is wrong because it doesn't work:
mongodb://user:password@ip:27017,ip:27017,ip:27017/?readPreference=primary&replicaSet=rsdigital&authSource=userManagement
Does anyone know what's wrong with the format?
Upvotes: 0
Views: 1023
Reputation: 1253
You are setting the mongo-uri in the env properties file.
The mongo-uri variable in the yml configuration file is defined as {{mongo-uri}}
. This way special chars (as the equal sign =) are escaped leading to the error.
Just define the variable as {{{mongo-uri}}}
to fix it.
The conf file is being fixed (with triple {{{var}}}
declarations) in upcoming RESTHeart version 3.6.3
More information on https://github.com/SoftInstigate/restheart/issues/327
Upvotes: 1