Initial commit

This commit is contained in:
Julien Hémono 2024-06-15 11:51:28 +02:00
commit a4da04692c
11 changed files with 543 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
let
app = "lemorillon";
domain = "${app}.hemono.fr";
dataDir = "/srv/http/${app}";
in {
services.nginx = {
enable = true;
virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
root = dataDir;
locations = {
"/" = {
index = "index.htm";
};
};
};
};
systemd.tmpfiles.rules = [
"d ${dataDir} 0700 ${config.services.nginx.user} ${config.services.nginx.group}"
];
}