mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-20 20:58:13 +07:00
Add configuration option to disable registration endpoint (#51)
This commit is contained in:
4
main.go
4
main.go
@ -67,7 +67,9 @@ func startHTTPAPI() {
|
||||
// Logwriter for saner log output
|
||||
c.Log = stdlog.New(logwriter, "", 0)
|
||||
}
|
||||
api.POST("/register", webRegisterPost)
|
||||
if !Config.API.DisableRegistration {
|
||||
api.POST("/register", webRegisterPost)
|
||||
}
|
||||
api.POST("/update", Auth(webUpdatePost))
|
||||
|
||||
host := Config.API.IP + ":" + Config.API.Port
|
||||
|
Reference in New Issue
Block a user