Program that serves compressed files over http.

Min 0735b5f79d initial 8 anni fa
LICENSE 0735b5f79d initial 8 anni fa
config.json 0735b5f79d initial 8 anni fa
index.html 0735b5f79d initial 8 anni fa
main.go 0735b5f79d initial 8 anni fa
readme.md 0735b5f79d initial 8 anni fa
template.go 0735b5f79d initial 8 anni fa

readme.md

LogServer

Program that serves compressed files over http.

Configuration

Configuration file (config.json) must be located in the same place as executable TODO: allow change conifg location via command line arguments

address - IP serving address data - A dictionary of string and item. String is a name that will be used as directory name in html page. item - Consists of 3 parts:

  • path - directory location in server
  • ext - file extension. All other files in directory mentioned above will be excluded
  • compress - if true files will be compressed in memory as tarball when served over web.

Build

Simple as

go build

For smallest executable

GOOS=linux go build -ldflags="-s -w"
upx --brute logserver

License

MIT