Vanityd is a simple server for vanity URLs that can be accessed by the go get command. This is a brief summary of how I run the server as a daemon on OpenBSD.

  • Cross-compile: GOOS=openbsd go build.
  • Install on server in /usr/local/bin.
  • Create /etc/rc.d/vanity:




    . /etc/rc.d/rc.subr

    rc_reload=NO rc_bg=YES

    rc_cmd $1 ```

  • Add vanityd to the pkg_scripts variable in /etc/rc.conf.local.

  • Start the server with doas rcctl start vanityd.
  • Obtain an SSL certificate for
  • Configure nginx to proxy requests to using the proxy_pass directive.