No description
Find a file
Sam Therapy f355da34b0
Align it better with newer werc
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-26 01:05:18 +02:00
root Align it better with newer werc 2022-07-26 01:05:18 +02:00
Dockerfile add Makefile and Dockerfile 2015-07-18 20:55:52 -07:00
fs.go switch to godocs vfs wrapper. unfortunately remote zip support is gone now. 2016-01-20 17:36:13 -08:00
go.mod Migrate to go modules 2022-07-10 15:57:19 +02:00
go.sum Migrate to go modules 2022-07-10 15:57:19 +02:00
LICENSE Migrate to go modules 2022-07-10 15:57:19 +02:00
main.go Align it better with newer werc 2022-07-26 01:05:18 +02:00
Makefile Align it better with newer werc 2022-07-26 01:05:18 +02:00
README.md Align it better with newer werc 2022-07-26 01:05:18 +02:00
util.go switch to godocs vfs wrapper. unfortunately remote zip support is gone now. 2016-01-20 17:36:13 -08:00

GOWERC

clone of http://werc.cat-v.org/ in go.

features

  • virtual hosting
  • render markdown, html, plain text
  • serve files
  • read content from zip file

building

with go

go install git.froth.zone/sam/go2werc@latest

in docker

check out the repo and run:

make

configuration

see the example configuration files in werc

using a zip file

zip a directory up and pass it to gowerc's -root option.

zip -r werc.zip werc

running

gowerc -l :80 -root werc/

with a zip file:

gowerc -l :80 -root werc.zip

in docker

docker run --rm --name gowerc -v $PWD:/opt mischief/gowerc -root /opt/werc.zip