You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trillian/ctfe/ct_server/main.go
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ import (
21
21
"crypto/ecdsa"
22
22
"crypto/ed25519"
23
23
"crypto/rsa"
24
+
"crypto/tls"
24
25
"flag"
25
26
"fmt"
26
27
"net/http"
@@ -57,6 +58,8 @@ import (
57
58
// Global flags that affect all log instances.
58
59
var (
59
60
httpEndpoint=flag.String("http_endpoint", "localhost:6962", "Endpoint for HTTP (host:port)")
61
+
tlsCert=flag.String("tls-certificate", "", "Path to server TLS certificate")
62
+
tlsKey=flag.String("tls-key", "", "Path to server TLS private key")
60
63
metricsEndpoint=flag.String("metrics_endpoint", "", "Endpoint for serving metrics; if left empty, metrics will be visible on --http_endpoint")
61
64
rpcBackend=flag.String("log_rpc_server", "", "Backend specification; comma-separated list or etcd service name (if --etcd_servers specified). If unset backends are specified in config (as a LogMultiConfig proto)")
62
65
rpcDeadline=flag.Duration("rpc_deadline", time.Second*10, "Deadline for backend RPC requests")
@@ -306,7 +309,19 @@ func main() {
306
309
}
307
310
308
311
// Bring up the HTTP server and serve until we get a signal not to.
0 commit comments