From 6adafdc13da4b93c8151f4acd681ed7f145d050d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 12 Mar 2024 10:53:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20a=20default=20Flower=20pas?= =?UTF-8?q?sword=20(#682)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- README.md | 3 ++- copier.yml | 5 +++++ deployment.md | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 4bf352a..9c2dd3a 100644 --- a/.env +++ b/.env @@ -37,7 +37,7 @@ PGADMIN_LISTEN_PORT=5050 SENTRY_DSN= # Flower -FLOWER_BASIC_AUTH= +FLOWER_BASIC_AUTH=admin:changethis # Configure these with your own Docker registry images DOCKER_IMAGE_BACKEND=backend diff --git a/README.md b/README.md index 28845d7..cb5b171 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 diff --git a/copier.yml b/copier.yml index 2458f3c..7ea135d 100644 --- a/copier.yml +++ b/copier.yml @@ -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 diff --git a/deployment.md b/deployment.md index 124a910..b170a73 100644 --- a/deployment.md +++ b/deployment.md @@ -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