Program that serves compressed files over http.
|
|
8 jaren geleden | |
|---|---|---|
| LICENSE | 8 jaren geleden | |
| config.json | 8 jaren geleden | |
| index.html | 8 jaren geleden | |
| main.go | 8 jaren geleden | |
| readme.md | 8 jaren geleden | |
| template.go | 8 jaren geleden |
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