Program that serves compressed files over http.

Min 21029feb2f Specify config file 8 år sedan
LICENSE 0735b5f79d initial 8 år sedan
config.json 96ef92b0b2 Code cleanup 8 år sedan
index.html 96ef92b0b2 Code cleanup 8 år sedan
main.go 21029feb2f Specify config file 8 år sedan
readme.md 21029feb2f Specify config file 8 år sedan
template.go 35b10f69fa View file 8 år sedan
utils.go 35b10f69fa View file 8 år sedan

readme.md

LogServer

Program that serves compressed files over http.


Configuration

Default configuration file is ./config.json. Config file can be specified with argument:

./logserver /path/to/config_file.json

Config.json options:

address - IP serving address:port.

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

Build

Simple as

go build

For smallest executable size

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

License

MIT