thuja

social media without the bullshit
git clone git://kqueue.dev/thuja.git
Log | Files | Refs | README | LICENSE

commit 6e8b1d1aa66d0abb8914c16bbad89e4cb3e35b9b
parent 877ac9ccdb1402c4a4f1d49ad38e737267541340
Author: kqueue <kqueue@cocaine.ninja>
Date:   Wed,  4 Jan 2023 12:00:58 -0500

switched to regular gzip instead of pgzip, added public instance

Diffstat:
MREADME.md | 8++++++--
Mgo.mod | 1-
Mgo.sum | 2--
Mthuja.go | 6+++---
4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -1,7 +1,11 @@ # Thuja: a WIP Christian anonymous image board -Thuja is an imageboard made in Go with zero javascript, zero SQL(instead using a key-value database), and has a built in NSFW filter. This project is very WIP and is currently missing certain features that i hope to add in the future. I'm hoping to add a public instance in the future. +Thuja is an imageboard made in Go with zero javascript, zero SQL(instead using a key-value database), and has a built in NSFW filter. +This project is very WIP and is currently missing certain features that i hope to add in the future. +[thuja.kqueue.dev](https://thuja.kqueue.dev) is the only public instance as far as I know # Difference between other platforms -I hope this project avoids the degeneracy that comes with just about every single social media platform. I also don't want it to become addictive and mentally harmful like Facebook/Instagram/Twitter/Reddit or whatever. There are no algorithms made to addict you and waste your time. Simple code, freedom of thought, and a hopefully good community surrounding it. +I hope this project avoids the degeneracy that comes with just about every single social media platform. +I also don't want it to become addictive and mentally harmful like Facebook/Instagram/Twitter/Reddit or whatever. +There are no algorithms made to addict you and waste your time. Simple code, freedom of thought, and a hopefully good community surrounding it. # Building run ``git clone git://kqueue.dev/thuja.git && cd thuja && go build .`` diff --git a/go.mod b/go.mod @@ -13,6 +13,5 @@ require ( github.com/andybalholm/brotli v1.0.4 // indirect github.com/go-pkgz/expirable-cache v0.1.0 // indirect github.com/klauspost/compress v1.14.1 // indirect - github.com/klauspost/pgzip v1.2.5 // indirect golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d // indirect ) diff --git a/go.sum b/go.sum @@ -10,8 +10,6 @@ github.com/go-pkgz/expirable-cache v0.1.0/go.mod h1:GTrEl0X+q0mPNqN6dtcQXksACnzC github.com/google/brotli/go/cbrotli v0.0.0-20210623081221-ce222e317e36/go.mod h1:nOPhAkwVliJdNTkj3gXpljmWhjc4wCaVqbMJcPKWP4s= github.com/klauspost/compress v1.14.1 h1:hLQYb23E8/fO+1u53d02A97a8UnsddcvYzq4ERRU4ds= github.com/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= -github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ= github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= github.com/pierrec/lz4/v4 v4.1.12/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= diff --git a/thuja.go b/thuja.go @@ -13,7 +13,7 @@ import ( "flag" "fmt" "github.com/CAFxX/httpcompression" - "github.com/CAFxX/httpcompression/contrib/klauspost/pgzip" + "github.com/CAFxX/httpcompression/contrib/klauspost/gzip" "github.com/CAFxX/httpcompression/contrib/klauspost/zstd" "kqueue.dev/thuja/go-nude" "github.com/didip/tollbooth/v7" @@ -249,8 +249,8 @@ func main() { getlmt.SetMessage("rate limit") getlmt.SetMessageContentType("text/plain; charset=utf-8") postlmt.SetIPLookups([]string{"X-Forwarded-For"}) - // Set pgzip compression settings - pgz, err := pgzip.New(pgzip.Options{Level: 6, BlockSize: 100000, Blocks: runtime.NumCPU() - 1}) + // Set gzip compression settings + pgz, err := gzip.New(gzip.Options{Level: 6}) if err != nil { log.Fatal(err) }