From 00be7967387d5c95a0c3387c0519c99dbd11bcff Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 9 Dec 2024 10:25:11 -0500 Subject: [PATCH] fix(config): add default values for the enabled fields Fixes: 069db2777dfb (feat: support toggling servers on/off in configuration (#594) (#612)) --- pkg/config/file.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/config/file.go b/pkg/config/file.go index 4bb0302db..55e45c76d 100644 --- a/pkg/config/file.go +++ b/pkg/config/file.go @@ -23,6 +23,9 @@ log: # The SSH server configuration. ssh: + # Enable SSH. + enabled: {{ .SSH.Enabled }} + # The address on which the SSH server will listen. listen_addr: "{{ .SSH.ListenAddr }}" @@ -47,6 +50,9 @@ ssh: # The Git daemon configuration. git: + # Enable the Git daemon. + enabled: {{ .Git.Enabled }} + # The address on which the Git daemon will listen. listen_addr: "{{ .Git.ListenAddr }}" @@ -66,6 +72,9 @@ git: # The HTTP server configuration. http: + # Enable the HTTP server. + enabled: {{ .HTTP.Enabled }} + # The address on which the HTTP server will listen. listen_addr: "{{ .HTTP.ListenAddr }}" @@ -82,6 +91,9 @@ http: # The stats server configuration. stats: + # Enable the stats server. + enabled: {{ .Stats.Enabled }} + # The address on which the stats server will listen. listen_addr: "{{ .Stats.ListenAddr }}"