mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-07 07:07:10 +02:00
25 lines
406 B
Go
25 lines
406 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/autonomy/talos/internal/app/proxyd/internal/frontend"
|
|
)
|
|
|
|
func main() {
|
|
r, err := frontend.NewReverseProxy()
|
|
if err != nil {
|
|
log.Fatalf("failed to initialize the reverse proxy: %v", err)
|
|
}
|
|
|
|
// nolint: errcheck
|
|
go r.Watch()
|
|
|
|
// nolint: errcheck
|
|
r.Listen(":443")
|
|
}
|
|
|
|
func init() {
|
|
log.SetFlags(log.Lshortfile | log.Ldate | log.Lmicroseconds | log.Ltime)
|
|
}
|