From 1729dcc3388ebe300bb92e2a674ae37b47644616 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 8 Aug 2018 18:57:30 -0400 Subject: [PATCH] re-gendoc --- Dockerfile | 3 ++- README.md.asc | 16 ++++++++-------- USAGE.md | 4 ++-- eephttpd.log | 14 +++++++------- example/www/index.html | 4 ++-- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69e57b4..9d0ef0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ ARG path=example/path ENV samhost=sam-host ENV samport=7656 ENV args="-r" +ENV user=$user RUN apk update -U RUN apk add go git make musl-dev RUN mkdir -p /opt/$user @@ -17,4 +18,4 @@ USER $user WORKDIR /opt/$user/ COPY $path /opt/$user/www #VOLUME /opt/$user/ -CMD eephttpd -sh=$samhost -sp=$samport $args +CMD eephttpd -s /opt/$user/ -sh=$samhost -sp=$samport $args diff --git a/README.md.asc b/README.md.asc index 79c28da..38dc553 100644 --- a/README.md.asc +++ b/README.md.asc @@ -157,12 +157,12 @@ their own projects. An i2p-native static site generator in the style of jekyll (but in go) could be cool. -----BEGIN PGP SIGNATURE----- -iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltrc2wACgkQ11wDs5te -FOGWoQf+J7JkA4o9LF1TOL55KXweBhfHSAQPw9qw8D+adeMp3fa8I/+nGAt+k/8o -9EeXiBDQ8JO1nC7H1E2gnpHVKiwUe+pRsLc4MZKzGgGenQKikxtzzz8dP5W9npAY -neMvCLc3JX+ub4d+qbKdDmCAcQKyLStjPHRku6+9d+DcrU/7IpPgFcPVtLAv+4wI -U39gN/NnTbLzfa1cVxZ3/j2ZUGEaMN5X5g/6ka+BFV+Ls88hAxWTmhkvvfs+iEpi -hcHdHwN0t06lpNuQtwm4QZ+N8sr3AZz6BEXlZ6W9X0UEoCvLluCJKK8eiTsKreH7 -vTcERj6HW1P/0P3s/J/oSxErLG0TIw== -=oVby +iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltrdVkACgkQ11wDs5te +FOE7Ngf/bII0PbXoadjiYgoCc4keWMwmdycWiPyVqIVQ8Qhph0wotbGCNIJoZjR8 +Y/YDrLLkxeO2WXubutaKlvOBVd7dX+zZIdLdhMMx24hHoezsfsuZq3l2heoSR4aO +R1XG5Ze3cFpTtQ42aXgsaJYjpjVwa0dLli5ZGLzJO+dEqxj/RyPKH6NYizeGHmeE +czDB3Fsol28iFxcKVSdXuso6gYtEbyfXDHivVwLRZTbF91tpLMFGNdP6wwAvghG4 +rszJ/lthXrTymF791mkMTlm6V0CSBcxjvEQ7BheZwDc16UiVHiA3vT83GwizSmHV +pX2lHVf44183t1SB6vl3hsXxpm22Iw== +=Y9yh -----END PGP SIGNATURE----- diff --git a/USAGE.md b/USAGE.md index 0188497..be41f13 100644 --- a/USAGE.md +++ b/USAGE.md @@ -123,7 +123,7 @@ Usage of ./bin/eephttpd: ### build in docker ``` -docker build --build-arg user=eephttpd -f Dockerfile -t eyedeekay/eephttpd . +docker build --build-arg user=eephttpd --build-arg path=example/www -f Dockerfile -t eyedeekay/eephttpd . ``` ### Run in docker @@ -145,5 +145,5 @@ instance -------- a running instance of eephttpd with the example index file is availble on - ttkljrsaqlyrq5nqed4bobvp3u3uk323sjtdhisitevlaepo4aoq.b32.i2p + 6vdci6cxqcwtcjfnt537on7fwuihevyg3u7pntaiijts7pqkqo4a.b32.i2p diff --git a/eephttpd.log b/eephttpd.log index ec29ea0..2d3d700 100644 --- a/eephttpd.log +++ b/eephttpd.log @@ -1,7 +1,7 @@ -2018/08/08 22:25:38 SAM Bridge connection established. -2018/08/08 22:25:38 Destination keys generated, tunnel name: static-eepSite -2018/08/08 22:25:38 Serving ./www on HTTP port: 8100 - and on ttkljrsaqlyrq5nqed4bobvp3u3uk323sjtdhisitevlaepo4aoq.b32.i2p -2018/08/08 22:25:58 SAM stream session established. -2018/08/08 22:25:58 Starting Listener. -2018/08/08 22:25:58 SAM Listener created, ttkljrsaqlyrq5nqed4bobvp3u3uk323sjtdhisitevlaepo4aoq.b32.i2p +2018/08/08 22:50:03 SAM Bridge connection established. +2018/08/08 22:50:03 Destination keys generated, tunnel name: static-eepSite +2018/08/08 22:50:03 Serving ./www on HTTP port: 8100 + and on 6vdci6cxqcwtcjfnt537on7fwuihevyg3u7pntaiijts7pqkqo4a.b32.i2p +2018/08/08 22:50:23 SAM stream session established. +2018/08/08 22:50:23 Starting Listener. +2018/08/08 22:50:23 SAM Listener created, 6vdci6cxqcwtcjfnt537on7fwuihevyg3u7pntaiijts7pqkqo4a.b32.i2p diff --git a/example/www/index.html b/example/www/index.html index cb3b8e9..3949d58 100644 --- a/example/www/index.html +++ b/example/www/index.html @@ -100,7 +100,7 @@ sam port to connect to (default "7656") -z Allow zero-hop, non-anonymous tunnels(true or false)

build in docker

-
docker build --build-arg user=eephttpd -f Dockerfile -t eyedeekay/eephttpd .
+
docker build --build-arg user=eephttpd  --build-arg path=example/www -f Dockerfile -t eyedeekay/eephttpd .

Run in docker

docker run -i -t -d --network si \
     --env samhost=sam-host \
@@ -113,4 +113,4 @@
     --volume eephttpd:/home/eephttpd/ \
     eyedeekay/eephttpd

instance

-

a running instance of eephttpd with the example index file is availble on ttkljrsaqlyrq5nqed4bobvp3u3uk323sjtdhisitevlaepo4aoq.b32.i2p

+

a running instance of eephttpd with the example index file is availble on 6vdci6cxqcwtcjfnt537on7fwuihevyg3u7pntaiijts7pqkqo4a.b32.i2p