Use host ssh server

This commit is contained in:
root 2021-10-01 23:20:10 +02:00
parent 3028efad4f
commit bb1b3a57ad
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,6 @@
enable = true;
domain = "gitea.c3d2.de";
rootUrl = "https://${domain}/";
ssh.clonePort = 2222;
database = {
type = "postgres";
@ -29,9 +28,9 @@
settings = {
server = {
START_SSH_SERVER = true;
# START_SSH_SERVER = true;
# BUILTIN_SSH_SERVER_USER = "git";
SSH_DOMAIN = domain;
SSH_PORT = ssh.clonePort;
ENABLE_GZIP = true;
};
mailer = {

View File

@ -6,6 +6,13 @@
services.openssh = {
enable = true;
permitRootLogin = "prohibit-password";
extraConfig = ''
Match User gitea
AllowAgentForwarding no
AllowTcpForwarding no
PermitTTY no
X11Forwarding no
'';
};
users.users.root = {