Sign inSign up

thorsager/gollo

By thorsager

Updated over 5 years ago

Simple testing web-app

Image
0

576

thorsager/gollo repository overview

gollo

Simple Test web-app in go

GitHub language count GitHub code size in bytes Go Report Card Build Status Docker Pulls

A bit of config

Gollo will bind to the IP expressed in the ENV var SERVER_IP on the port expressed in SERVER_PORT. if SERVER_IP is not set, Gollo will bin do all available addresses, and if SERVER_PORT is not set it will bind to port 8080.

Also Gollo will print out the message found in the ENV var GOLLO_MESSAGE in every response.

If the DUMP_HEADERS ENV var is set to a value that evaluates to true it will dump request headers in response as well.

In the same way the DUMP_ENVIRONMENT ENV var will dump the current environment in which the "server" is running.

!Please note that dumping the entire server runtime environment to everybody that asks may not be the most secure thing in the world

It is now possible to change the path of the prometheus and the health endpoints by setting the two env vars PROMETHEUS_PATH and HEALTH_PATH, note: paths should be absolute (starting with /)

Basic out is now also available, by default the path /path is secured by gollo:gollo these values can be changed by setting BASIC_PATH, BASIC_USER and BASIC_PASSWORD.

Running the thing

docker run --rm \
  -e DUMP_ENVIRONMENT=true \
  -e DUMP_HEADERS=true \
  -e HEALTH_PATH=/health \
  -e PROMETHEUS_PATH=/prometheus \
  -e BASIC_PATH=/basic \
  -e BASIC_USER=gollo \
  -e BASIC_PASSWORD=gollo \
  thorsager/gollo

Tag summary

Content type

Image

Digest

Size

3.2 MB

Last updated

over 5 years ago

docker pull thorsager/gollo