No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
handlers.go
main.go

README.md

Demo Server

This is a small utility used to demonstrate various points in configurating servers, proxies, load balancers eg.

Compile it with:

go build

This will produce the binary demoserver (or demoserver.exe). Run the server with:

./demoserver

The following flags can be used when running the server:

  • -http to set the IP address and port to listen to (-http=0.0.0.0:80)
  • -client use this if the client identity is stored in a header like X-Real-Ip: -client=X-Real-Ip
  • -id the id/name of the server. If none is gived a random name is selected.