Add tiles management

This commit is contained in:
2023-03-29 12:50:25 +02:00
parent 77c8576254
commit bbc682386a
18 changed files with 559 additions and 64 deletions

View File

@@ -37,10 +37,15 @@ func Run(done chan error, cfg *viper.Viper, handler *handler.CarpoolServiceHandl
return
}
err = http.ListenAndServe(address, ocss.NewServer(service))
server := ocss.NewServer(service)
server.AddOperator("mobilaude_preprod", "wxvSwUpTTZ5wiAxrHpPfDsijz88w6tMW")
server.AuthorizedOperators = append(server.AuthorizedOperators, ocss.AuthorizedOperator{
Operator: "mobilaude",
ApiKey: "$2y$10$TJuDZDu.mqy5dDKGMSfxSO5f6pz/36XVrAyQ1CXJd63ccjRlX7gpC",
})
srv := &http.Server{
Handler: ocss.NewServer(service),
Handler: server,
Addr: address,
WriteTimeout: 15 * time.Second,
ReadTimeout: 15 * time.Second,