2024-06-22 03:32:10 +04:00
2024-06-21 17:13:27 +04:00
2024-06-22 03:32:10 +04:00
2023-10-10 15:10:11 +04:00
2024-06-22 03:32:10 +04:00
2024-06-21 17:13:27 +04:00
2024-06-21 17:13:27 +04:00
2024-06-21 17:13:27 +04:00
2024-06-21 17:13:27 +04:00
2024-06-21 17:13:27 +04:00
2020-07-08 16:12:21 +05:00
2024-06-21 17:13:27 +04:00
2024-06-22 03:32:10 +04:00

CLI interface

Usage:

$ error-pages [GLOBAL FLAGS] [COMMAND] [COMMAND FLAGS] [ARGUMENTS...]

Global flags:

Name Description Default value Environment variables
--log-level="…" logging level (debug/info/warn/error/fatal) info LOG_LEVEL
--log-format="…" logging format (console/json) console LOG_FORMAT

serve command (aliases: s, server, http)

Start HTTP server.

Usage:

$ error-pages [GLOBAL FLAGS] serve [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

Name Description Default value Environment variables
--port="…" (-p) TCP port number 8080 LISTEN_PORT
--listen="…" (-l) IP (v4 or v6) address to listen on 0.0.0.0 LISTEN_ADDR
--add-template="…" to add a new template, provide the path to the file here (may be specified multiple times; the filename without the extension will be used as the template name) [] none

healthcheck command (aliases: chk, health, check)

Health checker for the HTTP server. The use case - docker health check.

Usage:

$ error-pages [GLOBAL FLAGS] healthcheck [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

Name Description Default value Environment variables
--port="…" (-p) TCP port number 8080 LISTEN_PORT
Description
No description provided
Readme 42 MiB
Languages
Go 48.8%
HTML 36.4%
JavaScript 13.5%
Dockerfile 1%
Makefile 0.3%