mirror of
https://codeberg.org/Codeberg/pages-server
synced 2025-03-28 00:24:46 +00:00
17 lines
455 B
Go
17 lines
455 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"crypto/tls"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
// tlsConfig contains the configuration for generating, serving and cleaning up Let's Encrypt certificates.
|
||
|
var tlsConfig = &tls.Config{
|
||
|
GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||
|
// TODO: check DNS name & get certificate from Let's Encrypt
|
||
|
return nil, fmt.Errorf("NYI")
|
||
|
},
|
||
|
PreferServerCipherSuites: true,
|
||
|
// TODO: optimize cipher suites, minimum TLS version, etc.
|
||
|
}
|