This commit is contained in:
2025-07-30 04:23:59 +00:00
parent bf47d85b04
commit 4817b9da43
2 changed files with 13 additions and 0 deletions

View File

@@ -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)

View File

@@ -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