1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-11 22:49:04 +02:00
parent be9fb9278e
commit b8af0e9761
No known key found for this signature in database
165 changed files with 1815 additions and 1431 deletions

View file

@ -0,0 +1,34 @@
{
config,
lib,
...
}:
let
parent = "/var/www";
sites = [
"wrz.one"
"helveticanonstandard.net"
];
in
lib.mkMerge (
map (
virtualHostName:
let
root = "${parent}/${virtualHostName}";
in
{
services.nginx.virtualHosts.${virtualHostName} = {
enableACME = true;
forceSSL = true;
inherit root;
};
systemd.tmpfiles.settings."10-static-sites".${root}.d = {
user = config.users.mainUser;
group = "users";
mode = "0755";
};
}
) sites
)