]> Sergey Matveev's repositories - godlighty.git/blob - rc/example.cfg/tls.go
Move domain-specific things to separate directory
[godlighty.git] / rc / example.cfg / tls.go
1 package cfg
2
3 import (
4         "path"
5
6         "go.stargrave.org/godlighty"
7 )
8
9 func newTLSCfg(host string) *godlighty.TLSCfg {
10         return &godlighty.TLSCfg{
11                 Cert:   path.Join(Etc, host+".pem"),
12                 Key:    path.Join(Etc, host+".pem"),
13                 CACert: CACert,
14         }
15 }