This commit is contained in:
@@ -17,7 +17,7 @@ let
|
||||
UsePAM yes
|
||||
AuthenticationMethods publickey
|
||||
AuthorizedKeysFile %h/.ssh/authorized_keys /etc/ssh/authorized_keys.d/%u
|
||||
LogLevel DEBUG3
|
||||
LogLevel INFO
|
||||
|
||||
VersionAddendum none
|
||||
HostKeyAlgorithms rsa-sha2-512,rsa-sha2-256,ssh-ed25519
|
||||
|
||||
@@ -14,7 +14,7 @@ with builtins;
|
||||
with lib;
|
||||
let
|
||||
domain = "hectic-lab.com";
|
||||
sshPort = 22;
|
||||
giteaSshPort = 22223;
|
||||
mailUserNames = [
|
||||
"security"
|
||||
"founders"
|
||||
@@ -342,7 +342,7 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
services.openssh.ports = [ sshPort ];
|
||||
services.openssh.ports = [ giteaSshPort ];
|
||||
|
||||
services.mailserver = {
|
||||
enable = true;
|
||||
@@ -364,7 +364,7 @@ in {
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
sshPort # ssh
|
||||
giteaSshPort # gitea ssh
|
||||
80
|
||||
443
|
||||
3306 # mysql
|
||||
@@ -556,7 +556,7 @@ in {
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 11011;
|
||||
ROOT_URL = "https://gitea.${domain}/";
|
||||
SSH_PORT = sshPort;
|
||||
SSH_PORT = giteaSshPort;
|
||||
SSH_DOMAIN = "hectic-lab.com";
|
||||
};
|
||||
lfs.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user