add ports for rgit
This commit is contained in:
parent
7865de7103
commit
8af386e521
5 changed files with 47 additions and 10 deletions
|
@ -12,7 +12,8 @@
|
||||||
networking.domain = "";
|
networking.domain = "";
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [80 443];
|
allowedTCPPorts = [80 443 9418];
|
||||||
|
allowedUDPPorts = [80 443 9418];
|
||||||
};
|
};
|
||||||
boot.loader.grub.devices = ["nodev"];
|
boot.loader.grub.devices = ["nodev"];
|
||||||
|
|
||||||
|
|
44
flake.lock
generated
44
flake.lock
generated
|
@ -54,6 +54,24 @@
|
||||||
"url": "file:///var/lib/git-server/jank-client-fork.git"
|
"url": "file:///var/lib/git-server/jank-client-fork.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"math-project": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1749728695,
|
||||||
|
"narHash": "sha256-ZeWhAif+eh/ObPxceqQcuvtvxreXTNcHnhWEbPAuppM=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "c35a0b510854103f466adca6b60f50822893daca",
|
||||||
|
"revCount": 5,
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///var/lib/git-server/math-project.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///var/lib/git-server/math-project.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749143949,
|
"lastModified": 1749143949,
|
||||||
|
@ -85,6 +103,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1748889542,
|
||||||
|
"narHash": "sha256-Hb4iMhIbjX45GcrgOp3b8xnyli+ysRPqAgZ/LZgyT5k=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "10d7f8d34e5eb9c0f9a0485186c1ca691d2c5922",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"ref": "nixos-25.05",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749658098,
|
"lastModified": 1749658098,
|
||||||
"narHash": "sha256-VCerWubROWYfKu027Y4IZdtjN+3qr2WCGhX+mUGW5wk=",
|
"narHash": "sha256-VCerWubROWYfKu027Y4IZdtjN+3qr2WCGhX+mUGW5wk=",
|
||||||
|
@ -100,7 +133,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714253743,
|
"lastModified": 1714253743,
|
||||||
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
|
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
|
||||||
|
@ -116,7 +149,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746141548,
|
"lastModified": 1746141548,
|
||||||
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
|
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
|
||||||
|
@ -134,7 +167,7 @@
|
||||||
},
|
},
|
||||||
"noshell": {
|
"noshell": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717396029,
|
"lastModified": 1717396029,
|
||||||
|
@ -154,7 +187,8 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"elmskell-blog": "elmskell-blog",
|
"elmskell-blog": "elmskell-blog",
|
||||||
"jank-client": "jank-client",
|
"jank-client": "jank-client",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"math-project": "math-project",
|
||||||
|
"nixpkgs": "nixpkgs_4",
|
||||||
"noshell": "noshell",
|
"noshell": "noshell",
|
||||||
"spacebar-server": "spacebar-server"
|
"spacebar-server": "spacebar-server"
|
||||||
}
|
}
|
||||||
|
@ -162,7 +196,7 @@
|
||||||
"spacebar-server": {
|
"spacebar-server": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748414795,
|
"lastModified": 1748414795,
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
inherit elmskell-blog;
|
inherit elmskell-blog;
|
||||||
inherit spacebar-server;
|
inherit spacebar-server;
|
||||||
|
inherit math-project;
|
||||||
ssh-pub-keys = import ./ssh-pub-keys.nix;
|
ssh-pub-keys = import ./ssh-pub-keys.nix;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -46,8 +47,8 @@
|
||||||
noshell.nixosModules.default
|
noshell.nixosModules.default
|
||||||
{programs.noshell.enable = true;}
|
{programs.noshell.enable = true;}
|
||||||
|
|
||||||
math-project.nixosModules.default
|
math-project.nixosModules.x86_64-linux.default
|
||||||
{programs.math-project.enable = true;}
|
{services.math-project.enable = true;}
|
||||||
./services/math-project.nix
|
./services/math-project.nix
|
||||||
|
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
@ -29,7 +29,7 @@ in {
|
||||||
METRICS_BIND = "[::1]:9283";
|
METRICS_BIND = "[::1]:9283";
|
||||||
METRICS_BIND_NETWORK = "tcp";
|
METRICS_BIND_NETWORK = "tcp";
|
||||||
POLICY_FNAME = "/etc/anubis/math-project.botPolicies.yaml";
|
POLICY_FNAME = "/etc/anubis/math-project.botPolicies.yaml";
|
||||||
TARGET = "http://localhost:8080";
|
TARGET = "http://localhost:8081";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -42,7 +42,7 @@ in {
|
||||||
systemd.services.math-project = {
|
systemd.services.math-project = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${lib.getExe math-project}";
|
ExecStart = "${lib.getExe math-project.packages.x86_64-linux.default}";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
image = "ghcr.io/w4/rgit:main";
|
image = "ghcr.io/w4/rgit:main";
|
||||||
ports = [
|
ports = [
|
||||||
"8000:8000"
|
"8000:8000"
|
||||||
|
"9418:9418"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/git-server:/git:ro"
|
"/var/lib/git-server:/git:ro"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue