mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-14 18:15:37 +00:00
Some checks failed
Build Snapshot / build-snapshot (push) Waiting to run
DevSkim / DevSkim (push) Waiting to run
Buf CI / buf (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Codestyle checks / codestyle (push) Has been cancelled
22 lines
412 B
Go
22 lines
412 B
Go
package httpservers
|
|
|
|
import (
|
|
config "github.com/OliveTin/OliveTin/internal/config"
|
|
)
|
|
|
|
// StartServers will start 3 HTTP servers. The WebUI, the Rest API, and a proxy
|
|
// for both of them.
|
|
func StartServers(cfg *config.Config) {
|
|
go startWebUIServer(cfg)
|
|
|
|
if cfg.UseSingleHTTPFrontend {
|
|
go StartSingleHTTPFrontend(cfg)
|
|
}
|
|
|
|
if cfg.Prometheus.Enabled {
|
|
go StartPrometheus(cfg)
|
|
}
|
|
|
|
startRestAPIServer(cfg)
|
|
}
|