summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorDario Louzado <louzadod@gmail.com>2021-05-31 22:33:50 -0300
committerGitHub <noreply@github.com>2021-05-31 21:33:50 -0400
commit5de01e21a19732785931f2db9c553ddffa60c4e6 (patch)
tree51652da6f4591766a6d1f769b1199e39229f91d6 /docker
parentc63d1d814cfcb10d4175161f7e013dc2661b1f05 (diff)
downloadgitea-5de01e21a19732785931f2db9c553ddffa60c4e6.tar.gz
gitea-5de01e21a19732785931f2db9c553ddffa60c4e6.zip
Make sshd_config more flexible regarding connections (#16009)
* Make sshd_config more flexible regarding MaxStartups and MaxSessions. See https://man.openbsd.org/sshd_config for more information. * make property prefix equals other existing Gitea SSH properties. Co-authored-by: dlouzado <dlouzado@senado.leg.br>
Diffstat (limited to 'docker')
-rw-r--r--docker/root/etc/templates/sshd_config3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/root/etc/templates/sshd_config b/docker/root/etc/templates/sshd_config
index 84a27b9190..a0ff0651d9 100644
--- a/docker/root/etc/templates/sshd_config
+++ b/docker/root/etc/templates/sshd_config
@@ -5,6 +5,9 @@ AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
+MaxStartups ${SSH_MAX_STARTUPS}
+MaxSessions ${SSH_MAX_SESSIONS}
+
LogLevel INFO
HostKey /data/ssh/ssh_host_ed25519_key