add dns as a submodule

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-03 18:19:22 +02:00
parent c510a1b05c
commit 05192d2e3d
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
8 changed files with 50 additions and 10 deletions

23
.gitignore vendored Normal file
View file

@ -0,0 +1,23 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
.dccache

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "root/sites/dns.froth.zone"]
path = root/sites/dns.froth.zone
url = ../dns.froth.zone.git

7
Caddyfile.example Normal file
View file

@ -0,0 +1,7 @@
example.com {
header ?Cache-Control "max-age=3600"
encode gzip
respond /robots.txt "User-agent: *
Disallow: " 200
reverse_proxy localhost:8080
}

View file

@ -1,18 +1,19 @@
# GOWERC
clone of http://werc.cat-v.org/ in go.
clone of <http://werc.cat-v.org/> in go.
## features
* virtual hosting
* render markdown, html, plain text
* serve files
* read content from zip file
- virtual hosting
- render markdown, html, plain text
- serve files
- read content from zip file
## building
### with go install
go install git.froth.zone/sam/go2werc@latest
go install git.froth.zone/sam/go2werc@latest
<!-- ### in docker
@ -43,6 +44,7 @@ with a zip file:
docker run --rm --name gowerc -v $PWD:/opt mischief/gowerc -root /opt/werc.zip -->
## License
Werc was originally put into the public domain. Since the public domain isn't a thing
outside of the US, 0BSD is used instead. It's basically the public domain but the EU
actually recognizes it.
Werc was originally put into the public domain. Since the public domain isn't a
thing outside of the US, 0BSD is used instead. It's basically the public domain
but the EU actually recognizes it.

2
go.mod
View file

@ -4,5 +4,5 @@ go 1.18
require (
github.com/russross/blackfriday/v2 v2.1.0
golang.org/x/tools v0.1.11
golang.org/x/tools v0.1.12
)

2
go.sum
View file

@ -2,3 +2,5 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
golang.org/x/tools v0.1.11 h1:loJ25fNOEhSXfHrpoGj91eCUThwdNX6u24rO1xnNteY=
golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=

View file

@ -476,5 +476,7 @@ func main() {
TLSConfig: tlsconf,
}
fmt.Println("Listening on", *listen)
log.Fatal(s.Serve(listener))
}

@ -0,0 +1 @@
Subproject commit bb4da3e4553d63538af417792b3f384d6a505a88