1 // Various static directories
8 "go.stargrave.org/godlighty"
11 func addStaticCfg(host, root string) {
12 if !path.IsAbs(root) {
13 root = path.Join(WWW, root)
15 godlighty.Hosts[host] = &godlighty.HostCfg{
17 EdDSATLS: newTLSCfg(host),
21 func addStaticListedDir(host, root string) {
22 addStaticCfg(host, root)
23 godlighty.Hosts[host].DirList = true
24 godlighty.Hosts[host].WebDAV = true
27 func addStaticWebDAVedDir(host, root string) {
28 addStaticCfg(host, root)
29 godlighty.Hosts[host].WebDAV = true
33 addStaticCfg("www.stargrave.org", "stargrave.org")
35 addStaticListedDir("www.mds.cypherpunks.ru", "/storage/audiobook/mds")
37 addStaticWebDAVedDir("cpan.mirror.cypherpunks.ru", "/storage/cpan/cpan")
38 addStaticWebDAVedDir("ctan.mirror.cypherpunks.ru", "/storage/ctan/ctan")