Sign inSign up

greenstatic/echo-ip

By greenstatic

•Updated about 8 years ago

A small Go web service to return the client's public IP.

Image
1

100K+

greenstatic/echo-ip repository overview

⁠Echo IP

A small Go web service to return the client's public IP. Github repository⁠

Features:

  • HTTP/HTTPS support
  • Apache Common Log Format (CLF)
  • No need for web server or reverse proxy
  • GET & POST support
  • Docker support

⁠Examples

To run the container here are some examples:

To run a HTTP server:

docker run --name echoip -p 80:8080 -d greenstatic/echo-ip

The container will by default listen to port 8080.

To run a HTTPS server (with certificate/key on the local filesystem):

docker run --name echoip -p 443:443 -d -v /home/greenstatic/certs:/cert:ro  greenstatic/echo-ip -c /cert/server.crt -k /cert/server.key

Tag summary

Content type

Image

Digest

Size

5.5 MB

Last updated

about 8 years ago

docker pull greenstatic/echo-ip