Merge pull request #20 from archtika/devel

Set prod module nix configuration
This commit is contained in:
Thilo Hohlt
2024-12-08 18:03:15 +01:00
committed by GitHub
2 changed files with 24 additions and 6 deletions

View File

@@ -6,8 +6,9 @@
../../module.nix
];
networking.hostName = "archtika-prod";
networking.hostName = "archtika-demo";
/*
services.archtika = {
enable = true;
package = localArchtikaPackage;
@@ -15,5 +16,11 @@
acmeEmail = "thilo.hohlt@tutanota.com";
dnsProvider = "porkbun";
dnsEnvironmentFile = /var/lib/porkbun.env;
settings = {
disableRegistration = true;
maxWebsiteStorageSize = 50;
maxUserWebsites = 2;
};
};
*/
}

View File

@@ -28,9 +28,13 @@ let
RestrictRealtime = true;
RestrictSUIDSGID = true;
SystemCallArchitectures = "native";
SystemCallFilter = ["@system-service" "~@privileged" "~@resources"];
SystemCallFilter = [
"@system-service"
"~@privileged"
"~@resources"
];
ReadWritePaths = ["/var/www/archtika-websites"];
ReadWritePaths = [ "/var/www/archtika-websites" ];
};
in
{
@@ -154,7 +158,11 @@ in
Restart = "always";
WorkingDirectory = "${cfg.package}/rest-api";
RestrictAddressFamilies = ["AF_INET" "AF_INET6" "AF_UNIX"];
RestrictAddressFamilies = [
"AF_INET"
"AF_INET6"
"AF_UNIX"
];
};
script = ''
@@ -181,7 +189,10 @@ in
Restart = "always";
WorkingDirectory = "${cfg.package}/web-app";
RestrictAddressFamilies = ["AF_INET" "AF_INET6"];
RestrictAddressFamilies = [
"AF_INET"
"AF_INET6"
];
};
script = ''