add contacthub account

This commit is contained in:
Nordine Bittich
2021-03-16 14:46:02 +01:00
parent c486528e69
commit 12c41120db
2 changed files with 10 additions and 4 deletions

View File

@@ -12,8 +12,14 @@ Backend for the Contact Hub application based on the mu.semte.ch microservices
You can shut down using `docker-compose stop` and remove everything using `docker-compose rm`.
## Change default username/password
## Add username/password for Basic Auth
By default, username/password is equal to root/root. To change it:
By default, there are two accounts you can use to log-in using basic auth:
- root/root
- contacthub/contacthub
To add new accounts, execute the following command, then add the result to `./config/proxy/nginx.htpasswd`
`docker run --rm --entrypoint htpasswd registry:2.7.0 -bn username password`
`docker run --rm --entrypoint htpasswd registry:2.7.0 -bn root root > ./config/proxy/nginx.htpasswd`

View File

@@ -1,2 +1,2 @@
root:$apr1$x9yMUyVV$w2FZk76C0mbKOlDHdLDV30
contacthub:$apr1$X8vLzV8z$Xsb.0lLoyasxfvwxQGQUp/