mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 09:35:10 +01:00
add quotdd
This commit is contained in:
parent
7fac534d32
commit
1d88b9498e
2 changed files with 21 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, config, name, pretense, ... }: {
|
||||
{ pkgs, lib, config, name, pretense, quotdd, ... }: {
|
||||
deployment.targetHost = "${config.networking.hostName}.infra.noratrieb.dev";
|
||||
|
||||
imports = [
|
||||
|
|
@ -49,7 +49,24 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 23 3306 5432 1521 ];
|
||||
systemd.services.quotdd = {
|
||||
description = "quotdd Quote of The Day Daemon";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
ExecStart = "${lib.getExe (quotdd {inherit pkgs;})}";
|
||||
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||
Environment = [ ];
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
23 # telnet, pretense
|
||||
3306 # mysql, pretense
|
||||
5432 # postgres, pretense
|
||||
1521 # oracle, pretense
|
||||
17 # quote of the day, quotdd
|
||||
];
|
||||
|
||||
# monitoring
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue