mirror of https://github.com/pikami/cosmium.git
19 lines
306 B
Go
19 lines
306 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/pikami/cosmium/api"
|
|
"github.com/pikami/cosmium/api/config"
|
|
)
|
|
|
|
func main() {
|
|
config.ParseFlags()
|
|
|
|
router := api.CreateRouter()
|
|
router.RunTLS(
|
|
fmt.Sprintf(":%d", config.Config.Port),
|
|
config.Config.TLS_CertificatePath,
|
|
config.Config.TLS_CertificateKey)
|
|
}
|