Support multiple certificate
All checks were successful
release-nightly / build-docker (push) Successful in 2m4s

This commit is contained in:
2024-01-29 19:25:10 +08:00
parent 910a9849f7
commit e55077c7e9
5 changed files with 43 additions and 17 deletions

View File

@ -58,17 +58,13 @@ func main() {
hypertext.InitServer(),
viper.GetStringSlice("hypertext.ports"),
viper.GetStringSlice("hypertext.secured_ports"),
viper.GetString("hypertext.certificate.pem"),
viper.GetString("hypertext.certificate.key"),
)
// Init sideload server
hypertext.RunServer(
sideload.InitSideload(),
viper.GetStringSlice("hypertext.sideload_ports"),
viper.GetStringSlice("hypertext.sideload_secured_ports"),
viper.GetString("hypertext.certificate.sideload_pem"),
viper.GetString("hypertext.certificate.sideload_key"),
[]string{},
)
log.Info().Msgf("RoadSign v%s is started...", roadsign.AppVersion)