11 "go.stargrave.org/godlighty"
12 "go.stargrave.org/godlighty/rc"
16 host := "blog.stargrave.org"
17 godlighty.Hosts[host] = &godlighty.HostCfg{
18 Root: path.Join(WWW, host),
19 EdDSATLS: newTLSCfg(host),
20 Hooks: []godlighty.Hook{
21 func(w http.ResponseWriter, r *http.Request) bool {
23 if strings.HasPrefix(r.URL.Path, "/russian") {
25 } else if strings.HasPrefix(r.URL.Path, "/english") {
27 } else if strings.HasPrefix(r.URL.Path, "/example") {
33 r.URL.Path = strings.TrimPrefix(r.URL.Path, "/"+t)
34 rc.RunCGIAndLog(host, w, r, &cgi.Handler{
35 Path: "/home/sgblog/sgblog",
37 Env: []string{"SGBLOG_CFG=/home/sgblog/" + t + ".hjson"},