]> Sergey Matveev's repositories - godlighty.git/blob - rc/example.cfg/go.go
Move domain-specific things to separate directory
[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         }
15 }
16
17 func init() {
18         addGoRepoCfg("go.cypherpunks.ru")
19         addGoRepoCfg("go.stargrave.org")
20 }