diff --git a/README.md b/README.md index f0c1c4e..f6d4981 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,18 @@ openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c 32 && echo docker run --rm -it ghcr.io/steveiliop56/tinyauth:v3 user create --username admin --password pa4803w0rd | sed 's/\$/\$\$/g' ``` ++ TOTP + +```bash +docker run --rm -it ghcr.io/steveiliop56/tinyauth:v3 totp generate -i +``` + +or non-interactive + +```bash +docker run --rm -it ghcr.io/steveiliop56/tinyauth:v3 totp generate --user 'user=admin:$2a$10$arlbhE48xDt58L3a5aZc6.j4tGWrandXjwCPBUh8RzJI6ZeuA6Psy' | sed 's/\$/\$\$/g' +``` + ### Автор [Yegorov Vassiliy](https://realmanual.ru) diff --git a/docker-compose.yaml b/docker-compose.yaml index a6a1c1e..ce1329a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -39,6 +39,7 @@ services: environment: - SECRET=dfmGGllQXsQ7U8KbJ47etByrVqWuiKvo - APP_URL=https://tinyauth.lab.realmanual.ru + # - USERS=admin:$$2a$$10$$arlbhE48xDt58L3a5aZc6.j4tGWrandXjwCPBUh8RzJI6ZeuA6Psy:UE27NIYXVISBMGEKG4UXJVWAS5W3TNZC # pass: pa4803w0rd + TOTP - USERS=admin:$$2a$$10$$arlbhE48xDt58L3a5aZc6.j4tGWrandXjwCPBUh8RzJI6ZeuA6Psy # pass: pa4803w0rd - DISABLE_CONTINUE=true - APP_TITLE=My best auth