What is the credentials #1

Closed
opened 3 years ago by wicadmin · 6 comments
wicadmin commented 3 years ago

Hi,
After I get this running, it gives a login screen but I do not see the default credentials in the documentation. Please advise how to get into the app.

Thank you.

Hi, After I get this running, it gives a login screen but I do not see the default credentials in the documentation. Please advise how to get into the app. Thank you.
Owner

Good question! The Docker image doesn't come with default credentials, because MediaGoblin doesn't. (And registration is disabled because this image is for private-mode instances.) Here's how to add a user:

First, exec into the running Docker image:

$ docker exec -it mediagoblin bash           

If you don't know the name of your mediagoblin image, try looking in docker ps output.

Then, add a user (follow the prompts):

gmg --conf_file /app/mediagoblin_local.ini adduser

Finally, make that user an admin (supplying your username):

gmg --conf_file /app/mediagoblin_local.ini makeadmin username

I can add this to README if that works for you.

Good question! The Docker image doesn't come with default credentials, because MediaGoblin doesn't. (And registration is disabled because this image is for private-mode instances.) Here's how to add a user: First, exec into the running Docker image: ```bash $ docker exec -it mediagoblin bash ``` If you don't know the name of your mediagoblin image, try looking in `docker ps` output. Then, add a user (follow the prompts): ```bash gmg --conf_file /app/mediagoblin_local.ini adduser ``` Finally, make that user an admin (supplying your username): ```bash gmg --conf_file /app/mediagoblin_local.ini makeadmin username ``` I can add this to README if that works for you.
Poster

Thanks for the speedy reply....I'll give that a try.

It would be helpful to add to the readme.

Thanks for the speedy reply....I'll give that a try. It would be helpful to add to the readme.
Owner

Okay, I'll use this ticket to track adding it to the README! Let me know if the steps work out for you.

Okay, I'll use this ticket to track adding it to the README! Let me know if the steps work out for you.
Poster

It did. Thanks again.

It did. Thanks again.
wicadmin closed this issue 3 years ago
Owner

Cool, glad to hear it. You'll have to add additional users in a similar manner. (Maybe without the makeadmin step.)

Cool, glad to hear it. You'll have to add additional users in a similar manner. (Maybe without the `makeadmin` step.)
witten referenced this issue from a commit 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.