Sign inSign up

etaylashev/nginxbot

By etaylashev

•Updated about 1 year ago

A simple NGINX webserver that returns on port 80 server name, IP address and few other params

Image
0

1.6K

etaylashev/nginxbot repository overview

⁠nginxbot

A simple Docker container with a NGINX webserver that returns on port 80 as a text the following:

  • LAB1 & LAB2 environmental variables
  • Server IP address and port
  • Server name
  • Local time of the server
  • the request URI
  • the request ID

How to run:

docker run -d \
--name nginxbot \
-p 80:80/tcp \
-e LAB1='This is var1' \
-e LAB2='and var 2' \
etaylashev/nginxbot

To test: curl http://localhost:80

Sample output:

Info:  This is var1 and var 2
Server address: 172.17.0.3:80
Server name: 73b4d55c25d5
Date: 20/Oct/2020:03:01:50 +0000
URI: /
Request ID: 579236e5c31f7d63c64f49badf689eed

See Also:

Tag summary

Content type

Image

Digest

sha256:dc81e5fc9…

Size

21.4 MB

Last updated

about 1 year ago

docker pull etaylashev/nginxbot