idk I fixed some stuff
This commit is contained in:
parent
4c66c514a3
commit
8aab959e42
2 changed files with 20 additions and 1 deletions
|
|
@ -127,6 +127,18 @@ in {
|
|||
...
|
||||
}: {
|
||||
environment.systemPackages = [pkgs.forgejo];
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [cfg.sshPort];
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
# AllowUsers = ["git"];
|
||||
};
|
||||
};
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,13 @@ in {
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
streamConfig = ''
|
||||
server {
|
||||
listen ${toString config.horseman.containers.forgejo.sshPort};
|
||||
proxy_pass ${config.containers.forgejo.localAddress}:${toString config.horseman.containers.forgejo.sshPort};
|
||||
}
|
||||
'';
|
||||
|
||||
virtualHosts = {
|
||||
"${cfg.domain}" = {
|
||||
forceSSL = true;
|
||||
|
|
@ -72,7 +79,7 @@ in {
|
|||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80 443];
|
||||
allowedTCPPorts = [80 443 config.horseman.containers.forgejo.sshPort];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue