Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
3.88k stars 529 forks source link

How to deactivate user account creation? #4965

Closed maeries closed 11 months ago

maeries commented 1 year ago

Describe your issue I plan to make my install accessible over the internet. Currently when someone visits the webinterface there is a link to create an account. Can I remove that to not everyone on the internet can create an account in my install?

Server Software:

si458 commented 1 year ago

you need to set newAccounts to false inside your config.json but in theory its already false from the word go https://github.com/Ylianst/MeshCentral/blob/d9481c4537d3973bf227ec27d9093d50b49c2586/meshcentral-config-schema.json#L353 please can you share your config.json contents (hiding any secret info)

maeries commented 1 year ago

Thanks that's it.

Btw. it was set to true for me by default

OutbackMatt commented 1 year ago

Is set true for me too, but is commented out with a leading underscore

skyblaster commented 1 year ago

I just encountered this issue, and the default ENV variables would be why. https://github.com/Ylianst/MeshCentral/tree/master/docker

ALLOW_NEW_ACCOUNTS=true