New server is pretty cool.

This commit is contained in:
idk
2018-08-08 16:37:41 -04:00
parent 68fd0e4e59
commit ff3b879d88
3 changed files with 54 additions and 10 deletions

View File

@ -30,7 +30,7 @@ server: clean-server bin/eephttpd
bin/eephttpd:
mkdir -p bin
go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o ../bin/eephttpd ./example/serve.go
go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o ./bin/eephttpd ./example/serve.go
all: build server
@ -44,7 +44,7 @@ noopts: clean
mkdir -p bin
cd main && go build -o ../bin/$(appname)
gendoc: build
gendoc: all
@echo "$(appname) - Easy forwarding of local services to i2p" > USAGE.md
@echo "==================================================" >> USAGE.md
@echo "" >> USAGE.md
@ -58,3 +58,29 @@ gendoc: build
@echo '```' >> USAGE.md
./bin/$(appname) -h 2>> USAGE.md; true
@echo '```' >> USAGE.md
@echo "" >> USAGE.md
@echo "eephttpd - Static file server automatically forwarded to i2p" >> USAGE.md
@echo "============================================================" >> USAGE.md
@echo "" >> USAGE.md
@echo "eephttpd is a static http server which automatically runs on i2p with" >> USAGE.md
@echo "the help of the SAM bridge. By default it will only be available from" >> USAGE.md
@echo "the localhost and it's i2p tunnel. It can be masked from the localhost" >> USAGE.md
@echo "using a container." >> USAGE.md
@echo "" >> USAGE.md
@echo '```' >> USAGE.md
./bin/eephttpd -h 2>> USAGE.md; true
@echo '```' >> USAGE.md
@echo "" >> USAGE.md
docker-build:
docker build -f Dockerfile -t eyedeekay/eephttpd .
docker-run:
docker run -i -t -d \
--network si \
--network-alias eephttpd \
--hostname eephttpd \
--name eephttpd \
--restart always \
--volume eephttpd:/home/eephttpd/www \
eyedeekay/eephttpd