File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Environment: local, staging, production
1+ # Enable local-only development behavior
22ENVIRONMENT = local
33
44PROJECT_NAME = " Full Stack FastAPI Project"
Original file line number Diff line number Diff line change @@ -54,24 +54,22 @@ export DOMAIN=fastapi-project.example.com
5454
5555The 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
7775You can set several other environment variables:
You can’t perform that action at this time.
0 commit comments