Skip to content

Commit 1b1900a

Browse files
author
Jakob Guldberg Aaes
committed
fix: Ensure consistent passphrase length
1 parent 61b7cd6 commit 1b1900a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Some environment variables in the `.env` file have a default value of `changethi
147147
You have to change them with a secret key, to generate secret keys you can run the following command:
148148

149149
```bash
150-
python -c "import secrets; print(secrets.token_urlsafe(32))"
150+
python -c "import secrets; print(secrets.token_urlsafe(32))[:31]"
151151
```
152152

153153
Copy the content and use that as password / secret key. And run that again to generate another secure key.

copier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ secret_key:
1313
help: |
1414
'The secret key for the project, used for security,
1515
stored in .env, you can generate one with:
16-
python -c "import secrets; print(secrets.token_urlsafe(32))"'
16+
python -c "import secrets; print(secrets.token_urlsafe(32)[:31])"'
1717
default: changethis
1818

1919
first_superuser:
@@ -51,7 +51,7 @@ postgres_password:
5151
help: |
5252
'The password for the PostgreSQL database, stored in .env,
5353
you can generate one with:
54-
python -c "import secrets; print(secrets.token_urlsafe(32))"'
54+
python -c "import secrets; print(secrets.token_urlsafe(32)[:31])"'
5555
default: changethis
5656

5757
sentry_dsn:

0 commit comments

Comments
 (0)