about summary refs log tree commit diff stats
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/default.go1
-rw-r--r--internal/config/structs.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/default.go b/internal/config/default.go
index 5202678..752d4e3 100644
--- a/internal/config/default.go
+++ b/internal/config/default.go
@@ -45,6 +45,7 @@ var DefaultConfig = Config{
 			"x-content-type-options": "nosniff",
 			"x-frame-options":        "DENY",
 		},
+		LogRequests: true,
 	},
 	Importer: &Importer{
 		LowMemory: false,
diff --git a/internal/config/structs.go b/internal/config/structs.go
index e73425b..8c69733 100644
--- a/internal/config/structs.go
+++ b/internal/config/structs.go
@@ -25,6 +25,7 @@ type Web struct {
 	Environment           string            `comment:"Affects logging parameters. One of 'development' or 'production'"`
 	ExtraHeadHTML         string            `comment:"Content to add to HTML <head>. Can be used to override styling, add scripts, etc."`
 	Headers               map[string]string `comment:"Extra headers to send with HTTP requests"`
+	LogRequests           bool              `comment:"Whether to log incoming HTTP requests"`
 }
 
 type Importer struct {