Sign inSign up

nasoym/bash_socat_server

By nasoym

•Updated over 9 years ago

bash_socat_server

Image
0

6.7K

nasoym/bash_socat_server repository overview

⁠Socat Bash Http Server

This repository contains a very simple bash socat http server. Socat is used to forward incoming data from a tcp port(8080) to the bash script. The bash script extract headers and body and writes the information into environment variables. Based on the request path, files are executed and the response is sent back to the client.

⁠options

  • -v : turn on verbose logging to stderr
  • -p : port (default: 8080)
  • -r : path for route handlers
  • -d : path to default route handler script

Tag summary

Content type

Image

Digest

Size

4 MB

Last updated

over 9 years ago

docker pull nasoym/bash_socat_server