Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 492 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 492 Bytes

SimpleServer

A reference implementation of an HTTP server. Stub data collector.

Example usage

Binary

$ make
$ while true ; do date ; ./.noshit/example 2>&1 | tee output.txt ; done

Port Forwarding

$ cat /etc/nginx/sites-enabled/80_to_8686
server {
  location / {
    proxy_pass http://0.0.0.0:8686/;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}