Skip to content

Commit

Permalink
docs: improve environment variable generation methods for docker comp…
Browse files Browse the repository at this point in the history
…ose (#1148)
  • Loading branch information
ChamathKB authored Jan 12, 2025
1 parent dc1ff4b commit 0a3fa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/self-hosting/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ For testing purposes, the pre-configured variables in the docker-compose file ar
If you send _any_ kind of sensitive data to the application or intend to keep it up for longer, we recommend that you modify the docker-compose file and overwrite the following environment variables:

- `SALT`: A random string used to hash passwords. It should be at least 32 characters long.
- `ENCRYPTION_KEY`: Generate this via `openssl rand -base64 32`.
- `NEXTAUTH_SECRET`: A random string used to sign JWT tokens.
- `ENCRYPTION_KEY`: Generate this via `openssl rand -hex 32`.
- `NEXTAUTH_SECRET`: A random string used to sign JWT tokens (Generate this via `openssl rand -base64 32`).
- `NEXTAUTH_URL`: The URL where the application is hosted. Used for redirects after signup.

In addition, you can change the database and storage credentials to be more secure.
Expand Down

0 comments on commit 0a3fa5a

Please sign in to comment.