Skip to main content

How to change password

tip

A simple unix command to generate a 32 characters long password.

< /dev/urandom tr -dc A-Za-z0-9 | head -c32

PostgREST password and token

info

Secret and password is the same thing.

  1. Generate a 32 characters long password.
  2. Copy the generated password.
  3. Go to the docker-compose.yml file (in the backend folder) and replace the password in PGRST_JWT_SECRET with the generated password.
  4. Go to jwt.io.
  5. Change the payload to
{
"role": "editor"
}
  1. Paste the password in secret (should say "your-256-bit-secret") JWT Generator
  2. Copy the token JWT Generator copy
  3. Paste the generated token in the token.txt file

Postgres password

  1. Generate a password.
  2. Replace the password in POSTGRES_PASSWORD with the password.
  3. Replace the password in PGRST_DB_URI. Make sure to only replace the postgres_password in postgres://app_user:postgres_password@grafana-360-viewer-postgres:5432/app_db.