Program that serves compressed files over http.
|
|
пре 8 година | |
|---|---|---|
| LICENSE | пре 8 година | |
| config.json | пре 8 година | |
| index.html | пре 8 година | |
| main.go | пре 8 година | |
| readme.md | пре 8 година | |
| template.go | пре 8 година |
Program that serves compressed files over http.
Configuration file (config.json) must be located in the same place as executable.
TODO: allow change conifg location via command line arguments.
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:
Simple as
go build
For smallest executable size
GOOS=linux go build -ldflags="-s -w"
upx --brute logserver