Update readme.md

This commit is contained in:
sadnub 2020-02-12 13:48:05 -05:00 committed by GitHub
parent b27e055445
commit 1203f8a6cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -21,7 +21,8 @@ Copy the fullchain.pem and privkey.pem to the cert directory.
Change values in .env to match your environment
```cd docker
```
cd docker
sudo docker-compose up -d
```
@ -29,24 +30,28 @@ You may need to run this twice since some of the dependant containers won't be r
## Create a super user
```sudo docker exec -it docker_api_1 python manage.py createsuperuser
```
sudo docker exec -it docker_api_1 python manage.py createsuperuser
```
## Setup 2FA authentication
Get the 2FA code with
```sudo docker exec -it docker_api_1 python manage.py generate_totp
```
sudo docker exec -it docker_api_1 python manage.py generate_totp
```
Add the generated code to the .env file TWO_FACTOR_OTP in the docker folder
Rebuild the api container
```sudo docker-compose up -d --build api
```
sudo docker-compose up -d --build api
```
Use the generated code and the username to generate a bar code for your authenticator app
```sudo docker exec -it docker_api_1 python manage.py generate_barcode [OTP_CODE] [username]
```
sudo docker exec -it docker_api_1 python manage.py generate_barcode [OTP_CODE] [username]
```