this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

make certmagic use json logs

pomdtr bb7558d9 ddeef8d8

+10
+10
cmd/up.go
··· 31 31 "github.com/knadh/koanf/providers/file" 32 32 "github.com/mhale/smtpd" 33 33 sloghttp "github.com/samber/slog-http" 34 + "go.uber.org/zap" 35 + "go.uber.org/zap/zapcore" 34 36 35 37 "github.com/knadh/koanf/providers/posflag" 36 38 "github.com/knadh/koanf/v2" ··· 130 132 defer watcher.Stop() 131 133 132 134 if flags.onDemandTLS { 135 + config := zap.NewProductionConfig() 136 + config.EncoderConfig.TimeKey = "time" 137 + config.OutputPaths = []string{"stdout"} 138 + config.EncoderConfig.EncodeTime = zapcore.RFC3339NanoTimeEncoder 139 + config.EncoderConfig.EncodeLevel = zapcore.CapitalLevelEncoder 140 + 141 + caddyLogger, _ := config.Build() 142 + certmagic.Default.Logger = caddyLogger 133 143 certmagic.Default.OnDemand = &certmagic.OnDemandConfig{ 134 144 DecisionFunc: func(ctx context.Context, name string) error { 135 145 if _, _, ok := lookupApp(name); ok {