errors

module
v0.0.0-...-a831e89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0

README

errors

Build Status Docker Hub Quay.io

The errors service provides handlers for a default backend which can be used within Kubernetes Ingress controllers like Nginx. It displayes unified and customizable error pages. This project is a customized fork of webhippie/errors.

Ports

  • 8080
  • 8081

Volumes

  • /opt/app/data

Environment Variables

# Path to optional config file
ERRORS_CONFIG_FILE=
# Set logging level
ERRORS_LOG_LEVEL=info
#Enable colored logging
ERRORS_LOG_COLOR=true
# Enable pretty logging
ERRORS_LOG_PRETTY=true

# Address to bind the metrics
ERRORS_METRICS_ADDR=0.0.0.0:8081
# Token to make metrics secure
ERRORS_METRICS_TOKEN=

# Address to bind the server
ERRORS_SERVER_ADDR=0.0.0.0:8080
# Enable pprof debugging
ERRORS_SERVER_PPROF=false
# Root path of the server
ERRORS_SERVER_ROOT=/
# External access to server
ERRORS_SERVER_HOST=http://localhost:8080
# Path to cert for SSL encryption
ERRORS_SERVER_CERT=
# Path to key for SSL encryption
ERRORS_SERVER_KEY=
# Use strict SSL curves
ERRORS_SERVER_STRICT_CURVES=false
# Use strict SSL ciphers
ERRORS_SERVER_STRICT_CIPHERS=false
# Folder for custom templates
ERRORS_SERVER_TEMPLATES=
# Path for overriding errors
ERRORS_SERVER_ERRORS=
# String for overriding errors title
ERRORS_SERVER_ERRORS_TITLE=

Build

Make sure you have a working Go environment, for further reference or a guide take a look at the install instructions.

git clone https://github.com/owncloud-ops/errors.git
cd errors

make build
./dist/errors --help

To build the container use:

docker build -f Dockerfile -t errors:latest .

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Directories

Path Synopsis
cmd
pkg
metrics
Package metrics contains custom prometheus metrics and registry factories.
Package metrics contains custom prometheus metrics and registry factories.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL