Skip to content

Commit 50d63e0

Browse files
committed
docs: relax compose startup env requirements
1 parent 4c5d59d commit 50d63e0

4 files changed

Lines changed: 19 additions & 27 deletions

File tree

src/components/docs/DockerComposeSnippet.astro

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ const snippets: Record<Props["variant"], string> = {
2121
environment:
2222
RACK_ENV: production
2323
PORT: 4000
24-
BUILD_TAG: \${BUILD_TAG:?set BUILD_TAG}
25-
GIT_SHA: \${GIT_SHA:?set GIT_SHA}
2624
HTML2RSS_SECRET_KEY: \${HTML2RSS_SECRET_KEY:?set HTML2RSS_SECRET_KEY}
2725
HEALTH_CHECK_TOKEN: \${HEALTH_CHECK_TOKEN:?set HEALTH_CHECK_TOKEN}
2826
SENTRY_DSN: \${SENTRY_DSN:-}
@@ -64,8 +62,6 @@ const snippets: Record<Props["variant"], string> = {
6462
environment:
6563
RACK_ENV: production
6664
PORT: 4000
67-
BUILD_TAG: \${BUILD_TAG:?set BUILD_TAG}
68-
GIT_SHA: \${GIT_SHA:?set GIT_SHA}
6965
HTML2RSS_SECRET_KEY: \${HTML2RSS_SECRET_KEY:?set HTML2RSS_SECRET_KEY}
7066
HEALTH_CHECK_TOKEN: \${HEALTH_CHECK_TOKEN:?set HEALTH_CHECK_TOKEN}
7167
SENTRY_DSN: \${SENTRY_DSN:-}
@@ -92,8 +88,6 @@ volumes:
9288
environment:
9389
RACK_ENV: production
9490
PORT: 4000
95-
BUILD_TAG: \${BUILD_TAG:?set BUILD_TAG}
96-
GIT_SHA: \${GIT_SHA:?set GIT_SHA}
9791
HTML2RSS_SECRET_KEY: \${HTML2RSS_SECRET_KEY:?set HTML2RSS_SECRET_KEY}
9892
HEALTH_CHECK_TOKEN: \${HEALTH_CHECK_TOKEN:?set HEALTH_CHECK_TOKEN}
9993
SENTRY_DSN: \${SENTRY_DSN:-}
@@ -113,7 +107,8 @@ volumes:
113107
restart: unless-stopped
114108
volumes:
115109
- /var/run/docker.sock:/var/run/docker.sock
116-
- "\${HOME}/.docker/config.json:/config.json"
110+
# Optional for private registries only:
111+
# - "\${HOME}/.docker/config.json:/config.json:ro"
117112
command: --cleanup --interval 7200`,
118113
resourceGuardrails: `services:
119114
html2rss-web:

src/content/docs/troubleshooting/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ If you are getting a "command not found" error, try the following:
129129
```bash
130130
lsof -i :4000
131131
```
132-
- If the app exits immediately in production, check that `HTML2RSS_SECRET_KEY`, `BUILD_TAG`, and `GIT_SHA` are set.
132+
- If the app exits immediately in production, check that `HTML2RSS_SECRET_KEY` is set.
133133

134134
### Can’t Access the Web Interface
135135

src/content/docs/web-application/how-to/deployment.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Before exposing html2rss-web, ensure:
2727
- Your domain (for example `yourdomain.com`) resolves to the host running Docker
2828
- Inbound TCP ports 80 and 443 reach the host (check firewalls and cloud security groups)
2929
- You are ready to watch the first deployment logs for certificate issuance
30-
- You have values ready for `HTML2RSS_SECRET_KEY`, `HEALTH_CHECK_TOKEN`, `BUILD_TAG`, and `GIT_SHA`
30+
- You have values ready for `HTML2RSS_SECRET_KEY` and `HEALTH_CHECK_TOKEN`
3131

3232
If you plan to enable automatic feed generation, also prepare:
3333

@@ -52,8 +52,6 @@ Caddy handles certificates and redirects with almost no configuration.
5252
CADDY_HOST=yourdomain.com
5353
HTML2RSS_SECRET_KEY= # Generate with: openssl rand -hex 32
5454
HEALTH_CHECK_TOKEN= # Generate a strong token for /api/v1/health
55-
BUILD_TAG=2026-03-27
56-
GIT_SHA=abcdef0
5755
BROWSERLESS_IO_API_TOKEN= # Required by the default compose stack
5856
# Optional: see [environment reference](/web-application/reference/env-variables)
5957
```
@@ -62,8 +60,7 @@ Caddy handles certificates and redirects with almost no configuration.
6260
- Set `CADDY_HOST` for your domain.
6361
- Generate a production secret (`openssl rand -hex 32`) and assign it to `HTML2RSS_SECRET_KEY`.
6462
- Generate a strong `HEALTH_CHECK_TOKEN` for `/api/v1/health`.
65-
- Set `BUILD_TAG` and `GIT_SHA` so startup logs identify the deployed build.
66-
- Adjust optional knobs such as `AUTO_SOURCE_ENABLED` and `SENTRY_DSN` as needed; refer to the [environment reference](/web-application/reference/env-variables) for details.
63+
- Adjust optional knobs such as `AUTO_SOURCE_ENABLED`, `SENTRY_DSN`, `BUILD_TAG`, and `GIT_SHA` as needed; refer to the [environment reference](/web-application/reference/env-variables) for details.
6764
- After `docker compose up -d`, run `docker compose logs caddy --tail 20`; look for `certificate obtained`.
6865
- Re-test after DNS changes with [SSL Labs](https://www.ssllabs.com/ssltest/).
6966
- Want automatic updates? Add the Watchtower service shown below.

src/content/docs/web-application/reference/env-variables.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "Configuration reference for html2rss-web environment variables."
55

66
## Supported ENV variables
77

8-
| Name | Description |
9-
| ------------------------------ | -------------------------------- |
10-
| `HTML2RSS_SECRET_KEY` | required in production; development/test gets a temporary default |
11-
| `HEALTH_CHECK_TOKEN` | bearer token for `GET /api/v1/health`; optional but recommended |
12-
| `BUILD_TAG` | required in production |
13-
| `GIT_SHA` | required in production |
14-
| `SENTRY_DSN` | optional; enables Sentry errors/logs when set |
15-
| `BROWSERLESS_IO_WEBSOCKET_URL` | optional; Browserless websocket endpoint for `browserless` strategy |
16-
| `BROWSERLESS_IO_API_TOKEN` | optional for local default endpoint; required when `BROWSERLESS_IO_WEBSOCKET_URL` points to a custom endpoint |
17-
| `AUTO_SOURCE_ENABLED` | `true` by default in development/test, `false` otherwise |
18-
| `ASYNC_FEED_REFRESH_ENABLED` | optional boolean; default `false` |
19-
| `ASYNC_FEED_REFRESH_STALE_FACTOR` | optional integer `>= 1`; default `3` |
20-
| `PORT` | app listen port; compose uses `4000` |
21-
| `RACK_ENV` | Rack environment; compose uses `production` |
8+
| Name | Description |
9+
| --------------------------------- | ------------------------------------------------------------------------------------------------------------- |
10+
| `HTML2RSS_SECRET_KEY` | required in production; development/test gets a temporary default |
11+
| `HEALTH_CHECK_TOKEN` | bearer token for `GET /api/v1/health`; optional but recommended |
12+
| `BUILD_TAG` | optional build metadata (typically set by CI image builds) |
13+
| `GIT_SHA` | optional commit metadata (typically set by CI image builds) |
14+
| `SENTRY_DSN` | optional; enables Sentry errors/logs when set |
15+
| `BROWSERLESS_IO_WEBSOCKET_URL` | optional; Browserless websocket endpoint for `browserless` strategy |
16+
| `BROWSERLESS_IO_API_TOKEN` | optional for local default endpoint; required when `BROWSERLESS_IO_WEBSOCKET_URL` points to a custom endpoint |
17+
| `AUTO_SOURCE_ENABLED` | `true` by default in development/test, `false` otherwise |
18+
| `ASYNC_FEED_REFRESH_ENABLED` | optional boolean; default `false` |
19+
| `ASYNC_FEED_REFRESH_STALE_FACTOR` | optional integer `>= 1`; default `3` |
20+
| `PORT` | app listen port; compose uses `4000` |
21+
| `RACK_ENV` | Rack environment; compose uses `production` |
2222

2323
Older environment-variable examples from previous docs revisions are obsolete. Use only the supported table above and the `Environment & Runtime Flags` table in [`html2rss-web/docs/README.md`](https://github.com/html2rss/html2rss-web/blob/master/docs/README.md).

0 commit comments

Comments
 (0)