Closed MaartenUreel closed 6 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
I'm kind of loath to add even more envs unless there's a significant need, we're already up to 7 for DB configuration. You can just supply your own system.properties with the necessary URI scheme and the container will use it.
I ended up going for a Droplet on DigitalOcean anyway since they do not support multiple ports to be exposed on their App Service.
Also I could not mount persistent volumes like with classical docker setup, hence the need for extra variables.
In the end, it might have made more sense perhaps to just have one variable with the entire connectionstring instead of all the parameters related to MongoDB :)
You'll get all kinds of weird issues if you don't have persistent storage for the Unifi container, but that aside we've typically found that asking users to provide a full connection URI for databases is a support nightmare so we try and avoid it.
Is this a new feature request?
Wanted change
The current system.properties file contains thi
If we could replace
mongodb://
withmongodb+srv://
we could run it on managed databases such as DigitalOcean.I tested it on a normal Droplet and it works, so I am pretty confident this will work too.
Reason for change
Compatibilty with managed MongoDB services
Proposed code change
Add new variable MONGO_PROTOCOL which defaults to mongodb but could thus be set to mongodb+srv