diff options
-rw-r--r-- | config.yml.example | 4 | ||||
-rw-r--r-- | internal/config/config.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config.yml.example b/config.yml.example index 1dc2c5e..5662d2e 100644 --- a/config.yml.example +++ b/config.yml.example @@ -50,7 +50,7 @@ auth_file: "/home/git/.ssh/authorized_keys" # Log level. INFO by default log_level: INFO -# Log format. 'text' by default +# Log format. 'json' by default, can be changed to 'text' if needed # log_format: json # Audit usernames. @@ -73,7 +73,7 @@ sshd: web_listen: "localhost:9122" # Maximum number of concurrent sessions allowed on a single SSH connection. Defaults to 10. concurrent_sessions_limit: 10 - # SSH host key files. + # SSH host key files. host_key_files: - /run/secrets/ssh-hostkeys/ssh_host_rsa_key - /run/secrets/ssh-hostkeys/ssh_host_ecdsa_key diff --git a/internal/config/config.go b/internal/config/config.go index c112038..23044cd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -60,7 +60,7 @@ type Config struct { var ( DefaultConfig = Config{ LogFile: "gitlab-shell.log", - LogFormat: "text", + LogFormat: "json", Server: DefaultServerConfig, User: "git", } |