Creating the first administrator
After you deploy your server, the first user to register becomes the administrator, with power to set other users as administrators.
In case your server has no administrators, you can create the first admin account by defining the environment variables ADMIN_PASS and ADMIN_EMAIL once.
1
export ROOT_URL=http://your-host-name.com-as-accessed-from-internet:3000/
2
export MONGO_URL=mongodb://localhost:27017/rocketchat
3
export PORT=3000
4
export ADMIN_USERNAME=admin
5
export ADMIN_PASS=supersecret
6
export ADMIN_EMAIL=[email protected]
7
8
node main.js
Copied!
Last modified 20d ago
Export as PDF
Copy link