Compare commits

..

No commits in common. "d154344930ad5a031d7d43857ed09643b42016ff" and "b00d1519acb69e6e0feaa95e798067821571fe50" have entirely different histories.

3 changed files with 5 additions and 16 deletions

View file

@ -9,7 +9,5 @@
neovim
git
sops
just
htop
];
}

View file

@ -12,14 +12,13 @@
services.openssh = {
enable = true;
ports = [ 4200 ];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 4200 ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
users.users.lew = {
isNormalUser = true;

View file

@ -12,34 +12,26 @@ in
services.caddy.virtualHosts."git.ily.rs" = {
extraConfig = ''
reverse_proxy localhost:${toString srv.HTTP_PORT}
encode zstd gzip
'';
};
services.forgejo = {
enable = true;
database.type = "sqlite3";
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.ily.rs";
ROOT_URL = "https://git.ily.rs/";
HTTP_PORT = 3000;
SSH_DOMAIN = "git.ily.rs";
START_SSH_SERVER = true;
SSH_PORT = 4201;
SSH_LISTEN_PORT = 4201;
DISABLE_HTTP_GIT = true;
};
service = {
DISABLE_REGISTRATION = true;
REQUIRE_SIGNIN_VIEW = false;
SSH_PORT = 2222;
SSH_LISTEN_PORT = 2222;
};
service.DISABLE_REGISTRATION = true;
};
};
networking.firewall.allowedTCPPorts = [ 4201 ];
networking.firewall.allowedTCPPorts = [ 2222 ];
systemd.services.forgejo.preStart = let
adminCmd = "${lib.getExe cfg.package} admin user";