feat(config): add commercial-mode to optimize HTTP middleware for lower memory usage

This commit is contained in:
Luis Pater
2025-12-25 21:05:01 +08:00
parent 8e749ac22d
commit 443c4538bb
3 changed files with 15 additions and 7 deletions

View File

@@ -39,6 +39,9 @@ type Config struct {
// Debug enables or disables debug-level logging and other debug features.
Debug bool `yaml:"debug" json:"debug"`
// CommercialMode disables high-overhead HTTP middleware features to minimize per-request memory usage.
CommercialMode bool `yaml:"commercial-mode" json:"commercial-mode"`
// LoggingToFile controls whether application logs are written to rotating files or stdout.
LoggingToFile bool `yaml:"logging-to-file" json:"logging-to-file"`