idk I fixed some stuff

This commit is contained in:
KoenDR06 2026-02-10 15:17:32 +01:00
parent 4c66c514a3
commit 8aab959e42
2 changed files with 20 additions and 1 deletions

View file

@ -127,6 +127,18 @@ in {
... ...
}: { }: {
environment.systemPackages = [pkgs.forgejo]; environment.systemPackages = [pkgs.forgejo];
services.openssh = {
enable = true;
ports = [cfg.sshPort];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
# AllowUsers = ["git"];
};
};
services.forgejo = { services.forgejo = {
enable = true; enable = true;

View file

@ -30,6 +30,13 @@ in {
services.nginx = { services.nginx = {
enable = true; enable = true;
streamConfig = ''
server {
listen ${toString config.horseman.containers.forgejo.sshPort};
proxy_pass ${config.containers.forgejo.localAddress}:${toString config.horseman.containers.forgejo.sshPort};
}
'';
virtualHosts = { virtualHosts = {
"${cfg.domain}" = { "${cfg.domain}" = {
forceSSL = true; forceSSL = true;
@ -72,7 +79,7 @@ in {
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [80 443]; allowedTCPPorts = [80 443 config.horseman.containers.forgejo.sshPort];
}; };
}; };
}; };