Skip to content

Commit

Permalink
📝 Update docs for hashed passwords #84
Browse files Browse the repository at this point in the history
  • Loading branch information
McPringle committed Apr 14, 2024
1 parent 426768a commit 9cf2145
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ You can now also attach breakpoints in code for debugging purposes, by clicking

| Variable | Default | Description |
|-------------------------|------------------------------------|-----------------------------------------------------------------|
| ADMIN_PASSWORD | | The password to get admin access (empty = disabled). |
| ADMIN_PASSWORD | | The hashed password to get admin access (empty = disabled). |
| DOAG_EVENT_ID | 0 | The ID of the DOAG event to read the conference agenda. |
| FILTER_LENGTH | 500 | Hide social media messages which exceed this length (0=off). |
| FILTER_REPLIES | true | Hide social media messages which are replies. |
Expand All @@ -105,6 +105,16 @@ You can now also attach breakpoints in code for debugging purposes, by clicking

The environment variables will override the default values.

### Create Hashed Password

For security reasons the password is not stored in cleartext. *Apus* requires the password to be hashed using [bcrypt](https://en.wikipedia.org/wiki/Bcrypt). Of course, *Apus* can do this for you. Start the JAR file providing the parameter `-p` followed by the password you want to create a hash for. The output will show you two lines of code. The first line contains the hashed password and the second line contains the same hashed password, but with the dollar signs escaped ready to copy and paste it into a `docker-compose.yaml`. Example:

```
java -jar target/apus-1.jar -p 12345
Hashed password for environment variable: $2a$10$nybQbl/iY8SRJkfHJVncS.L5.OC3KJ6VRBYVAID7qnUqwylmn/BtK
Hashed password for Docker Compose file: $$2a$$10$$nybQbl/iY8SRJkfHJVncS.L5.OC3KJ6VRBYVAID7qnUqwylmn/BtK
```

### Configuration Files

All configuration files are completely optional and stored in an `.apus` subdirectory of the home directory of the user running *Apus*.
Expand Down

0 comments on commit 9cf2145

Please sign in to comment.