Skip to content

Commit

Permalink
🔧 Add a default Flower password (fastapi#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Mar 12, 2024
1 parent 1b7a7d6 commit 600d37a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Make sure you at least change the value for `SECRET_KEY` in the main `.env` file

### Generate secret keys

Some environment variables in the `.env` file have a default value of `changethis`.
Some environment variables in the `.env` file have a default value of `changethis`.

You have to change them with a secret key, to generate secret keys you can run the following command:

Expand Down Expand Up @@ -157,6 +157,7 @@ The input variables, with their default values (some auto generated) are:
- `pgadmin_default_user`: (default: `"admin"`) The default user for pgAdmin, you can set it later in .env.
- `pgadmin_default_password`: (default: `"changethis"`) The default user password for pgAdmin, stored in .env.
- `sentry_dsn`: (default: "") The DSN for Sentry, if you are using it, you can set it later in .env.
- `flower_basic_auth`: (default: `"admin:changethis"`) The basic auth for Flower, you can set it later in .env.

## Release Notes

Expand Down
5 changes: 5 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ sentry_dsn:
help: The DSN for Sentry, if you are using it, you can set it later in .env
default: ""

flower_basic_auth:
type: str
help: The basic auth for Flower, you can set it later in .env
default: "admin:changethis"

_exclude:
# Global
- .vscode
Expand Down
2 changes: 1 addition & 1 deletion deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ You can set several variables, like:
* `PGADMIN_DEFAULT_EMAIL`: The default email for pgAdmin.
* `PGADMIN_DEFAULT_PASSWORD`: The default password for pgAdmin.
* `SENTRY_DSN`: The DSN for Sentry, if you are using it.
* `FLOWER_BASIC_AUTH`: The HTTP Basic Auth for Flower.
* `FLOWER_BASIC_AUTH`: The HTTP Basic Auth for Flower, like `admin:changethis`.

### Generate secret keys

Expand Down

0 comments on commit 600d37a

Please sign in to comment.