Initial commit
This commit is contained in:
commit
a4da04692c
11 changed files with 543 additions and 0 deletions
24
hosts/sesame/lemorillon.nix
Normal file
24
hosts/sesame/lemorillon.nix
Normal 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}"
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue