aboutsummaryrefslogtreecommitdiffstats
path: root/hived.go
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-09-11 19:20:36 +0000
committerterminaldweller <thabogre@gmail.com>2021-09-11 19:20:36 +0000
commit23a756f9b777eb5e1fe8f9b70928a5c42796fe36 (patch)
tree2380ee3532f0c9700d707cb0986aab6fd7477c02 /hived.go
parenthttps support-WIP (diff)
downloadhived-23a756f9b777eb5e1fe8f9b70928a5c42796fe36.tar.gz
hived-23a756f9b777eb5e1fe8f9b70928a5c42796fe36.zip
https working now
Diffstat (limited to '')
-rw-r--r--hived.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/hived.go b/hived.go
index 76fcd84..bb7d425 100644
--- a/hived.go
+++ b/hived.go
@@ -603,15 +603,15 @@ func robotsHandler(w http.ResponseWriter, r *http.Request) {
func startServer(gracefulWait time.Duration) {
r := mux.NewRouter()
cfg := &tls.Config{
- MinVersion: tls.VersionTLS13,
- CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
- PreferServerCipherSuites: true,
- CipherSuites: []uint16{
- tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
- tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
- tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
- tls.TLS_RSA_WITH_AES_256_CBC_SHA,
- },
+ MinVersion: tls.VersionTLS13,
+ // CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
+ // PreferServerCipherSuites: true,
+ // CipherSuites: []uint16{
+ // tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+ // tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
+ // tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
+ // tls.TLS_RSA_WITH_AES_256_CBC_SHA,
+ // },
}
srv := &http.Server{
Addr: "0.0.0.0:" + *flagPort,
@@ -628,7 +628,7 @@ func startServer(gracefulWait time.Duration) {
r.HandleFunc("/robots.txt", robotsHandler)
go func() {
- if err := srv.ListenAndServeTLS("/certs/fullchain.pem", "/certs/privkey.pem"); err != nil {
+ if err := srv.ListenAndServeTLS("/certs/fullchain1.pem", "/certs/privkey1.pem"); err != nil {
log.Fatal().Err(err)
}
}()