diff --git a/management/server/config.go b/management/server/config.go index 4b047bbe0..07012cca3 100644 --- a/management/server/config.go +++ b/management/server/config.go @@ -31,8 +31,6 @@ type HttpServerConfig struct { AuthIssuer string // AuthKeysLocation is a location of JWT key set containing the public keys used to verify JWT AuthKeysLocation string - // UIFilesLocation is the location of static UI files for management frontend - UIFilesLocation string } // Host represents a Wiretrustee host (e.g. STUN, TURN, Signal) diff --git a/management/server/http/server.go b/management/server/http/server.go index d636c8431..fa45a2b07 100644 --- a/management/server/http/server.go +++ b/management/server/http/server.go @@ -9,7 +9,6 @@ import ( "github.com/wiretrustee/wiretrustee/management/server/http/middleware" "golang.org/x/crypto/acme/autocert" "net/http" - "path/filepath" "time" ) @@ -58,13 +57,6 @@ func (s *Server) Start() error { h := http.NewServeMux() s.server.Handler = h - // serve public website - uiPath := filepath.Clean(s.config.UIFilesLocation) - fs := http.FileServer(http.Dir(uiPath)) - h.Handle("/", fs) - fsStatic := http.FileServer(http.Dir(filepath.Join(uiPath, "static/"))) - h.Handle("/static/", http.StripPrefix("/static/", fsStatic)) - peersHandler := handler.NewPeers(s.accountManager) keysHandler := handler.NewSetupKeysHandler(s.accountManager) h.Handle("/api/peers", corsMiddleware.Handler(jwtMiddleware.Handler(peersHandler)))