diff --git a/README.md b/README.md index ae4c52d..3aa0f48 100644 --- a/README.md +++ b/README.md @@ -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` \ No newline at end of file diff --git a/config/proxy/nginx.htpasswd b/config/proxy/nginx.htpasswd index b6f48b4..850d460 100644 --- a/config/proxy/nginx.htpasswd +++ b/config/proxy/nginx.htpasswd @@ -1,2 +1,2 @@ root:$apr1$x9yMUyVV$w2FZk76C0mbKOlDHdLDV30 - +contacthub:$apr1$X8vLzV8z$Xsb.0lLoyasxfvwxQGQUp/ \ No newline at end of file