15 lines
415 B
Go
15 lines
415 B
Go
package main
|
|
|
|
func main() {
|
|
|
|
config := Config{
|
|
DataDir: "/var/lib/ddnsService",
|
|
Addr: ":8999", OAuth2ClientID: "0oa472q93Zu227hXY5d6",
|
|
OAuth2ClientSecret: "sj98SdfZxjkYxUd8NCbyhSuPX1D7kPARDRJ0kVUe",
|
|
IssuerUrl: "https://dev-1614211.okta.com/oauth2/default",
|
|
OAuth2RedirectUrl: "http://localhost:8999/admin",
|
|
ZoneUrl: "hub.voglfrei.net"}
|
|
server := CreateHttpServer(&config)
|
|
server.Listen()
|
|
}
|