Jan-Lukas Else

Thoughts of an IT expert

Tor support in GoBlog

Published on in 👨‍💻 Dev
Short link: https://b.jlel.se/s/405
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

I don’t know of any other blogging software that supports this: Serve a blog directly as a Tor hidden service.

A while ago I had already set up my hosting setup so that in the container where Caddy operates as a reverse proxy, Tor is also started and serves my blog as a hidden service.

However, the whole thing was more of a hack than a clean solution. Something better was needed.

Now I came across the Go library bine, which allows to start hidden services directly via a Go API. All that is needed is to have Tor available in the PATH, or to use an embedded Tor version.

A clean implementation was now quite easy thanks to this library, and Tor integration can be easily enabled in the configuration.

Theoretically, it should even be possible to provide a blog exclusively via Tor, but I haven’t tried that yet.

Tags: ,

Jan-Lukas Else
Interactions & Comments