mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-03-03 02:27:01 +00:00
feat: add invite-only tutorial (#49)
This commit is contained in:
11
README.md
11
README.md
@@ -95,3 +95,14 @@ services:
|
||||
database:
|
||||
image: mongo:4.4
|
||||
```
|
||||
|
||||
### Making your instance invite-only
|
||||
|
||||
Enable invite-only mode by setting `REVOLT_INVITE_ONLY` in `.env` to `1`
|
||||
|
||||
Create an invite (Replace "YOUR INVITE HERE" with what you want the invite code to be)
|
||||
```bash
|
||||
docker-compose exec database mongosh
|
||||
use revolt
|
||||
db.invites.insertOne({ _id: "YOUR INVITE HERE" })
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user