This commit is contained in:
4
main.go
4
main.go
@@ -488,6 +488,10 @@ func (s *server) verifyJWS(ctx context.Context, w http.ResponseWriter, r *http.R
|
||||
func (s *server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
|
||||
lg := slog.New(slog.NewJSONHandler(os.Stdout, nil))
|
||||
slog.SetDefault(lg)
|
||||
lg.Info("Request", time.Now().Format("2026-12-18 18:06:00"), r.URL.Path)
|
||||
|
||||
switch {
|
||||
case (r.Method == http.MethodHead || r.Method == http.MethodGet) && r.URL.Path == "/acme/new-nonce":
|
||||
n := uuid.New().String()
|
||||
|
Reference in New Issue
Block a user