Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ Available options:
## Authentication in Mongo GUI
When you want to use the interface on a remote server, you need to protect your data. Mongo-gui provides you with a simple authentication facility for this. This is completely optional, if you don't want authorization you don't use it. To use authorization, follow these steps:
- Create a ```.env ``` file in the main directory.
- In this file, create ```USERNAME=<your_username>``` variable for your username and ```PASSWORD="<your_password>"``` variable for your password.
- In this file, create ```MONGOGUI_USERNAME=<your_username>``` variable for your username and ```MONGOGUI_PASSWORD="<your_password>"``` variable for your password.
- Restart your server.

That's it. If you are working on your own computer, or if you do not need security, you can turn off the variables you have defined in the ```.env ``` file by putting a comment before them, e.g.
- ```#USERNAME=<your_username>```
- ```#MONGOGUI_USERNAME=<your_username>```

Or you can delete your ```.env ``` file.

Expand Down