Skip to content

Commit ae3faf9

Browse files
committed
📝 Clarify environment configuration
1 parent a5aff58 commit ae3faf9

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎.env‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Environment: local, staging, production
1+
# Enable local-only development behavior
22
ENVIRONMENT=local
33

44
PROJECT_NAME="Full Stack FastAPI Project"

‎deployment.md‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,22 @@ export DOMAIN=fastapi-project.example.com
5454

5555
The deployment Docker Compose configuration also uses `DOMAIN` to set the public frontend URL used in links generated by the backend.
5656

57-
Set the `POSTGRES_PASSWORD` to something different than `changethis`:
57+
Set the `POSTGRES_PASSWORD` to a secure value:
5858

5959
```bash
60-
export POSTGRES_PASSWORD="changethis"
60+
export POSTGRES_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
6161
```
6262

63-
Set the `SECRET_KEY`, used to sign tokens:
63+
Set the `SECRET_KEY`, used to sign tokens, to a secure value:
6464

6565
```bash
66-
export SECRET_KEY="changethis"
66+
export SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
6767
```
6868

69-
Note: you can use the Python command above to generate a secure secret key.
70-
71-
Set the `FIRST_SUPERUSER_PASSWORD` to something different than `changethis`:
69+
Set the `FIRST_SUPERUSER_PASSWORD` to a secure value:
7270

7371
```bash
74-
export FIRST_SUPERUSER_PASSWORD="changethis"
72+
export FIRST_SUPERUSER_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
7573
```
7674

7775
You can set several other environment variables:

0 commit comments

Comments
 (0)