📝 Clarify environment configuration (#2419)

## AI Disclaimer

Using Codex with gpt-5.6-sol. Reviewed manually.
This commit is contained in:
Sebastián Ramírez
2026-08-10 18:46:19 +02:00
committed by GitHub
parent a5aff58850
commit 2c28c6f7dc
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# Environment: local, staging, production # Enable local-only development behavior
ENVIRONMENT=local ENVIRONMENT=local
PROJECT_NAME="Full Stack FastAPI Project" PROJECT_NAME="Full Stack FastAPI Project"
+6 -8
View File
@@ -54,24 +54,22 @@ export DOMAIN=fastapi-project.example.com
The deployment Docker Compose configuration also uses `DOMAIN` to set the public frontend URL used in links generated by the backend. The deployment Docker Compose configuration also uses `DOMAIN` to set the public frontend URL used in links generated by the backend.
Set the `POSTGRES_PASSWORD` to something different than `changethis`: Set the `POSTGRES_PASSWORD` to a secure value:
```bash ```bash
export POSTGRES_PASSWORD="changethis" export POSTGRES_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
``` ```
Set the `SECRET_KEY`, used to sign tokens: Set the `SECRET_KEY`, used to sign tokens, to a secure value:
```bash ```bash
export SECRET_KEY="changethis" export SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
``` ```
Note: you can use the Python command above to generate a secure secret key. Set the `FIRST_SUPERUSER_PASSWORD` to a secure value:
Set the `FIRST_SUPERUSER_PASSWORD` to something different than `changethis`:
```bash ```bash
export FIRST_SUPERUSER_PASSWORD="changethis" export FIRST_SUPERUSER_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
``` ```
You can set several other environment variables: You can set several other environment variables: