Skip to content

docs: correct client env-var prefixes and stale flag/log-path docs - #63

Open
bakerboy448 wants to merge 1 commit into
Notifiarr:mainfrom
bakerboy448:docs/client-envvar-prefix-drift
Open

docs: correct client env-var prefixes and stale flag/log-path docs#63
bakerboy448 wants to merge 1 commit into
Notifiarr:mainfrom
bakerboy448:docs/client-envvar-prefix-drift

Conversation

@bakerboy448

Copy link
Copy Markdown
Collaborator

Reconciles the client docs against the current notifiarr code (v0.9.5 + main). Every change was verified against source, not inferred.

Env-var prefix corrections

The client's Web UI renders every config env var with the DN_ prefix (frontend/src/includes/Input.svelte:100 hardcodes 'DN_' + envVar.toUpperCase(), DefaultEnvPrefix = "DN"). healthChecks.md and install.md already document vars this way; these three pages didn't.

  • commands.md: vars were COMMANDS_{n}_*, but the config field is xml:"command" (singular), so cnfg derives COMMAND_{n}_*. Corrected to DN_COMMAND_{n}_*. Also added the missing DN_COMMAND_{n}_SHELL var (the field exists and is tagged identically to the documented ones), and fixed the shell wrapper: pkg/triggers/commands/builder.go:71 uses /bin/sh, not /bin/bash.
  • endpoints.md: ENDPOINT_{n}_*DN_ENDPOINT_{n}_*.
  • fileWatcher.md: WATCH_FILE_{n}_*DN_WATCH_FILE_{n}_*.

Other drift

  • fileWatcher.md: documented that the UI now rejects watching the client's own log file (it would loop); client errors already flow via the client_error_log event. Client PR #1300, backend ErrIgnoredLog in pkg/triggers/filewatch/filewatch.go.
  • afterInstall.md: FreeBSD log path was /var/log/syslog; the rc.d unit (init/bsd/freebsd.rc.d) sets DN_LOG_FILE/DN_HTTP_LOG/DN_SERVICES_LOG_FILE under /usr/local/var/log/notifiarr/ and DN_QUIET=true, so nothing reaches syslog. Corrected to /usr/local/var/log/notifiarr/{app,http,services}.log.
  • troubleshooting.md (Useful CLI Flags): --write never overwrites an existing config; only example/--- write a default template to <config>.new (pkg/client/cli.go, pkg/configfile/config.go refuses to overwrite an existing file). Added the -v short version flag and -w short form.

markdownlint + cspell pass on all five changed files.

Reconciled the client docs against the current notifiarr code (v0.9.5 + main).
All changes verified against source:

- commands.md: env vars were `COMMANDS_{n}_*`; the config field is `xml:"command"`
  (singular) and the Web UI hardcodes the `DN_` prefix, so the real vars are
  `DN_COMMAND_{n}_*`. Added the missing `DN_COMMAND_{n}_SHELL` var and fixed the
  shell wrapper: builder.go uses `/bin/sh`, not `/bin/bash`.
- endpoints.md / fileWatcher.md: added the missing `DN_` prefix to every env var
  (`DN_ENDPOINT_{n}_*`, `DN_WATCH_FILE_{n}_*`), matching the UI and the existing
  healthChecks.md / install.md convention.
- fileWatcher.md: documented that the UI rejects watching the client's own log
  file (it would loop); client errors already flow via the `client_error_log`
  event (client PR #1300).
- afterInstall.md: FreeBSD log path corrected from `/var/log/syslog` to
  `/usr/local/var/log/notifiarr/{app,http,services}.log` (freebsd.rc.d sets
  DN_LOG_FILE/DN_HTTP_LOG/DN_SERVICES_LOG_FILE and DN_QUIET=true, so nothing
  goes to syslog).
- troubleshooting.md: `--write` never overwrites an existing config; only
  `example`/`---` write a default template to `<config>.new`. Added the `-v`
  short version flag and the `-w` short form.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant