Skip to content

Commit

Permalink
fix(config): add default values for the enabled fields
Browse files Browse the repository at this point in the history
Fixes: 069db27 (feat: support toggling servers on/off in configuration (#594) (#612))
  • Loading branch information
aymanbagabas committed Dec 9, 2024
1 parent 1de446f commit 00be796
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down

0 comments on commit 00be796

Please sign in to comment.