Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/pi-web-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Environment:
PI_WEB_NO_OPEN Set to 1/true/yes/on to disable browser open
PI_WEB_PASSWORD Enable HTTP Basic Auth (username is always "pi")
PI_WEB_ALLOWED_HOSTS Extra exact proxy/custom hostnames, comma-separated
PI_WEB_SKIP_VERSION_CHECK Set to 1 to disable Pi Web update checks
PI_WEB_IDLE_TIMEOUT_MS Session idle timeout in ms (0 disables; default 600000)
`;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/pi-web-options.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ test("supports --help and -h without starting the server", () => {
assert.match(getHelpText(), /--port/);
assert.match(getHelpText(), /--hostname/);
assert.match(getHelpText(), /--no-open/);
assert.match(getHelpText(), /PI_WEB_SKIP_VERSION_CHECK/);
assert.match(getHelpText(), /PI_WEB_IDLE_TIMEOUT_MS/);
});

test("rejects unknown options with a help hint", () => {
Expand Down
Loading