mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
📝 Clarify environment configuration (#2419)
## AI Disclaimer Using Codex with gpt-5.6-sol. Reviewed manually.
This commit is contained in:
committed by
GitHub
parent
a5aff58850
commit
2c28c6f7dc
+6
-8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user