mirror of
https://github.com/vwxyzjn/portwarden
synced 2025-12-31 06:13:14 +00:00
21 lines
362 B
Go
21 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"log"
|
|
|
|
"github.com/vwxyzjn/portwarden/web/scheduler/server"
|
|
)
|
|
|
|
func main() {
|
|
credential, err := ioutil.ReadFile("portwardenCredentials.json")
|
|
if err != nil {
|
|
log.Fatalf("Unable to read client secret file: %v", err)
|
|
}
|
|
ps := server.PortwardenServer{
|
|
Port: 5000,
|
|
GoogleDriveAppCredentials: credential,
|
|
}
|
|
ps.Run()
|
|
}
|