diff --git a/README.md b/README.md index afe124f3f..dc456e67b 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Some environment variables in the `.env` file have a default value of `changethi You have to change them with a secret key, to generate secret keys you can run the following command: ```bash -python -c "import secrets; print(secrets.token_urlsafe(32))" +python -c "import secrets; print(secrets.token_urlsafe(32)[:40])" ``` Copy the content and use that as password / secret key. And run that again to generate another secure key. diff --git a/copier.yml b/copier.yml index f98e3fc86..c904d006b 100644 --- a/copier.yml +++ b/copier.yml @@ -13,7 +13,7 @@ secret_key: help: | 'The secret key for the project, used for security, stored in .env, you can generate one with: - python -c "import secrets; print(secrets.token_urlsafe(32))"' + python -c "import secrets; print(secrets.token_urlsafe(32)[:40])"' default: changethis first_superuser: @@ -51,7 +51,7 @@ postgres_password: help: | 'The password for the PostgreSQL database, stored in .env, you can generate one with: - python -c "import secrets; print(secrets.token_urlsafe(32))"' + python -c "import secrets; print(secrets.token_urlsafe(32)[:40])"' default: changethis sentry_dsn: diff --git a/deployment.md b/deployment.md index 970032b38..1ae842f5f 100644 --- a/deployment.md +++ b/deployment.md @@ -158,7 +158,7 @@ Some environment variables in the `.env` file have a default value of `changethi You have to change them with a secret key, to generate secret keys you can run the following command: ```bash -python -c "import secrets; print(secrets.token_urlsafe(32))" +python -c "import secrets; print(secrets.token_urlsafe(32)[:40])" ``` Copy the content and use that as password / secret key. And run that again to generate another secure key.