From 2c28c6f7dce687d4240da0cbc481a10b0e2ce9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 10 Aug 2026 18:46:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Clarify=20environment=20configur?= =?UTF-8?q?ation=20(#2419)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## AI Disclaimer Using Codex with gpt-5.6-sol. Reviewed manually. --- .env | 2 +- deployment.md | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.env b/.env index c6f805a3..f6c896a4 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -# Environment: local, staging, production +# Enable local-only development behavior ENVIRONMENT=local PROJECT_NAME="Full Stack FastAPI Project" diff --git a/deployment.md b/deployment.md index 48df8b51..dcb9d66e 100644 --- a/deployment.md +++ b/deployment.md @@ -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. -Set the `POSTGRES_PASSWORD` to something different than `changethis`: +Set the `POSTGRES_PASSWORD` to a secure value: ```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 -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 something different than `changethis`: +Set the `FIRST_SUPERUSER_PASSWORD` to a secure value: ```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: