chore: remove unused static dashboard files

This commit is contained in:
braginini 2021-08-20 16:25:51 +02:00
parent 695148410f
commit b5a20bf1ba
2 changed files with 0 additions and 10 deletions

View File

@ -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)

View File

@ -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)))