Skip to content

Commit b114d53

Browse files
committed
update env details
1 parent c6ca207 commit b114d53

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/self-hosting/environment-variables.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ To configure your application, set the following environment variables. These va
88

99
## Application Configuration
1010

11-
| Variable | Example | Description |
12-
| ---------------------- |------------------------------|---------------------------------------------------------------------------------------|
13-
| `APP_URL` | `http://docmost.example.com` | The base URL of your application. It is optional, but useful for correct email links. |
14-
| `APP_SECRET` | `random_key` | A random key used for application security. |
15-
| `PORT` | `3000` | The port on which the application will run. |
16-
| `JWT_TOKEN_EXPIRES_IN` | `30d` | The expiration time for JSON Web Tokens (JWT). |
11+
| Variable | Example | Description |
12+
|-----------------------|-------------------------------|--------------------------------------------------------------------------------------------------|
13+
| `APP_URL` | `https://docmost.example.com` | The base URL of your application. It is optional, but useful for correct email links. |
14+
| `APP_SECRET` | `LONG_SECRET_KEY` | A secure key for application security (32 chars minimum). Generate with `openssl rand -hex 32`. |
15+
| `PORT` | `3000` | The port on which the application will run. |
16+
| `JWT_TOKEN_EXPIRES_IN` | `30d` | The expiration time for JSON Web Tokens (JWT). The default is 30 days. |
1717

1818
## Database Configuration
1919

docs/self-hosting/installation/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ You are to replace the default environment variables in the `docker-compose.yml`
109109

110110
The `APP_URL` should be replaced with your chosen domain. E.g. `https://example.com` or `https://docmost.example.com`.
111111

112-
The `APP_SECRET` value must be replaced with a long random secret key.
112+
The `APP_SECRET` value must be replaced with a long random secret key (32 characters minimum).
113113
You can generate the secret with `openssl rand -hex 32`. If you leave the default value, the app will fail to start.
114114

115115
Replace `STRONG_DB_PASSWORD` in the `POSTGRES_PASSWORD` environment variable with a secure password.

0 commit comments

Comments
 (0)