]> Sergey Matveev's repositories - godlighty.git/blob - rc/example.cfg/go.go
845dfcc308514bf364c85fb4380cc13fca731a68
[godlighty.git] / rc / example.cfg / go.go
1 package cfg
2
3 import (
4         "path"
5
6         "go.stargrave.org/godlighty"
7 )
8
9 func addGoRepoCfg(host string) {
10         godlighty.Hosts[host] = &godlighty.HostCfg{
11                 Root:    path.Join(WWW, host),
12                 TLS:     newTLSCfg(host),
13                 MIMEs:   map[string]string{"": "text/html"},
14                 Indices: []string{"v1"},
15         }
16 }
17
18 func init() {
19         addGoRepoCfg("go.cypherpunks.ru")
20         addGoRepoCfg("go.stargrave.org")
21 }