fix: api.rest is now on http and port 8081 by default

This commit is contained in:
evilsocket 2018-09-17 11:23:49 +02:00
commit 319b6059a5
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -45,7 +45,7 @@ func NewRestAPI(s *session.Session) *RestAPI {
"Address to bind the API REST server to."))
api.AddParam(session.NewIntParameter("api.rest.port",
"8083",
"8081",
"Port to bind the API REST server to."))
api.AddParam(session.NewStringParameter("api.rest.username",
@ -59,14 +59,14 @@ func NewRestAPI(s *session.Session) *RestAPI {
"API authentication password."))
api.AddParam(session.NewStringParameter("api.rest.certificate",
"~/.bcap-api.rest.certificate.pem",
"",
"",
"API TLS certificate."))
tls.CertConfigToModule("api.rest", &api.SessionModule, tls.DefaultLegitConfig)
api.AddParam(session.NewStringParameter("api.rest.key",
"~/.bcap-api.rest.key.pem",
"",
"",
"API TLS key"))