CONFIG ERROR
.fig.toml could not be parsed. Continuing with default settings.
error: could not parse configuration
--> .fig.toml
TOML parse error at line 17, column 1
|
17 | [present]
| ^^^^^^^^^
missing field `files`
help: fix the syntax shown above; default settings apply until it is validMARKDOWN SOURCE
# Environment variables Pear reads the following settings at startup. | Variable | Default | Description | | --- | --- | --- | | `PORT` | `8080` | TCP port the web server listens on. The Docker image sets this to `80`. | | `DB_PATH` | `pear.db` | Path to the SQLite-compatible database file. For Docker, keep it under the mounted `/data` directory (the image uses `/data/pear.db`). | | `SESSION_SECRET` | Generated at startup | Stable secret used to sign and encrypt session cookies. Set a value of at least 64 bytes to keep sessions valid across restarts. If unset, a new key is generated on each start and existing sessions are invalidated. | | `INVITE_SECRET` | Unset | Enables account invitations. Enter this secret at `/auth/invites` to create one-time signup links. An empty value disables invite creation. | | `RESET_DB` | `false` | When exactly `true`, deletes the database file at startup. This is destructive; do not enable it for persistent deployments. | | `CACHE_CONTROL` | `public, max-age=31536000, immutable` | Cache-Control header for static assets. Set to `no-cache` (or `true`) to disable caching, or provide another valid Cache-Control header value. | For example, generate a stable session secret for Docker with: ```sh printf 'SESSION_SECRET=%s\n' "$(openssl rand -hex 64)" > .env ``` Keep `.env` private. Mount persistent storage at `/data` when running the Docker image so the database survives container replacement.
Environment variables
Pear reads the following settings at startup.
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | TCP port the web server listens on. The Docker image sets this to 80. |
DB_PATH | pear.db | Path to the SQLite-compatible database file. For Docker, keep it under the mounted /data directory (the image uses /data/pear.db). |
SESSION_SECRET | Generated at startup | Stable secret used to sign and encrypt session cookies. Set a value of at least 64 bytes to keep sessions valid across restarts. If unset, a new key is generated on each start and existing sessions are invalidated. |
INVITE_SECRET | Unset | Enables account invitations. Enter this secret at /auth/invites to create one-time signup links. An empty value disables invite creation. |
RESET_DB | false | When exactly true, deletes the database file at startup. This is destructive; do not enable it for persistent deployments. |
CACHE_CONTROL | public, max-age=31536000, immutable | Cache-Control header for static assets. Set to no-cache (or true) to disable caching, or provide another valid Cache-Control header value. |
For example, generate a stable session secret for Docker with:
printf 'SESSION_SECRET=%s\n' "$(openssl rand -hex 64)" > .env
Keep .env private. Mount persistent storage at /data when running the Docker
image so the database survives container replacement.