User management documentation (#1).

This commit is contained in:
Dan Helfman 2019-06-03 21:59:48 -07:00
parent 1cce298f22
commit b2e2ade44f
1 changed files with 29 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Source at https://projects.torsion.org/witten/mediagoblin-docker
## Example ## Example
```console ```console
docker run --detach --name=mediagoblin \ $ sudo docker run --detach --name=mediagoblin \
--env NOTIFICATION_EMAIL=media@example.org \ --env NOTIFICATION_EMAIL=media@example.org \
--env EMAIL_HOSTNAME=mail.example.org \ --env EMAIL_HOSTNAME=mail.example.org \
--env EMAIL_PORT=587 \ --env EMAIL_PORT=587 \
@ -39,3 +39,31 @@ docker run --detach --name=mediagoblin \
--publish 80:80 \ --publish 80:80 \
witten/mediagoblin:latest witten/mediagoblin:latest
``` ```
## User management
Since this image is for running a private MediaGoblin server, user
self-registration is disabled. So, to add a user, first exec into the running
Docker image:
```console
$ sudo docker exec -it mediagoblin bash
```
Where `mediagoblin` is the name of your running Docker container. If you dont
know the name to use, try looking in `docker ps` output.
Then, add a user (follow the prompts):
```console
# su - mediagoblin
$ gmg --conf_file /app/mediagoblin_local.ini adduser
```
Finally, if you want to make the new user into an admin user:
```console
$ gmg --conf_file /app/mediagoblin_local.ini makeadmin username
```
Where `username` corresponds to the user you added above.