Explorar el Código

Call SSL TLS

tags/v0.1.0
Russ Garrett hace 7 años
padre
commit
450cdce744
No account linked to committer's email address
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 2
    2
      httplistener/httplistener.go
  2. 3
    3
      irccat.json

+ 2
- 2
httplistener/httplistener.go Ver fichero

29
 
29
 
30
 	hl.http.Handler = mux
30
 	hl.http.Handler = mux
31
 	log.Infof("Listening for HTTP requests on %s", viper.GetString("http.listen"))
31
 	log.Infof("Listening for HTTP requests on %s", viper.GetString("http.listen"))
32
-	if viper.GetBool("http.ssl") {
33
-		go hl.http.ListenAndServeTLS(viper.GetString("http.ssl_cert"), viper.GetString("http.ssl_key"))
32
+	if viper.GetBool("http.tls") {
33
+		go hl.http.ListenAndServeTLS(viper.GetString("http.tls_cert"), viper.GetString("http.tls_key"))
34
 	} else {
34
 	} else {
35
 		go hl.http.ListenAndServe()
35
 		go hl.http.ListenAndServe()
36
 	}
36
 	}

+ 3
- 3
irccat.json Ver fichero

2
   "tcp_listen": ":12345",
2
   "tcp_listen": ":12345",
3
   "http": {
3
   "http": {
4
     "listen": ":8045",
4
     "listen": ":8045",
5
-    "ssl": false,
6
-    "ssl_key": "",
7
-    "ssl_cert": "",
5
+    "tls": false,
6
+    "tls_key": "",
7
+    "tls_cert": "",
8
     "listeners": {
8
     "listeners": {
9
       "grafana": "#russtest"
9
       "grafana": "#russtest"
10
     }
10
     }

Loading…
Cancelar
Guardar