whatever
This commit is contained in:
parent
ad0c74b801
commit
ae93cac1d6
3 changed files with 5 additions and 19 deletions
|
|
@ -24,14 +24,8 @@
|
|||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
AllowUsers = [ "ellie" "forgejo" "borg" ];
|
||||
AllowUsers = [ "ellie" "borg" ];
|
||||
};
|
||||
extraConfig = ''
|
||||
Match User forgejo Address 10.10.0.1
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
PermitTunnel no
|
||||
'';
|
||||
};
|
||||
|
||||
services.fail2ban = {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
systemd.services.forgejo = {
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
preStart = ''
|
||||
mkdir -p /var/lib/forgejo/.ssh
|
||||
chmod 700 /var/lib/forgejo/.ssh
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [
|
||||
22
|
||||
2222
|
||||
3000
|
||||
];
|
||||
|
||||
|
|
@ -24,9 +15,10 @@
|
|||
ROOT_URL = "https://forgejo.ellie.town/";
|
||||
HTTP_ADDR = "10.10.0.2";
|
||||
HTTP_PORT = 3000;
|
||||
START_SSH_SERVER = false;
|
||||
START_SSH_SERVER = true;
|
||||
SSH_DOMAIN = "forgejo.ellie.town";
|
||||
SSH_PORT = 2222;
|
||||
SSH_LISTEN_PORT = 2222;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
}
|
||||
|
||||
upstream forgejo_ssh {
|
||||
server 10.10.0.2:22;
|
||||
server 10.10.0.2:2222;
|
||||
}
|
||||
server {
|
||||
listen 2222;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue