2024-09-26 20:11:04 +02:00
|
|
|
{ config, ... }:
|
2024-02-02 19:54:06 +01:00
|
|
|
let
|
|
|
|
domain = "ese.${config.networking.domain}";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts."${domain}" = {
|
|
|
|
locations."= /" = {
|
2024-06-16 18:29:36 +02:00
|
|
|
return = "301 /2024/";
|
2024-02-02 19:54:06 +01:00
|
|
|
};
|
|
|
|
locations."/" = {
|
|
|
|
root = "/srv/web/ese/served";
|
|
|
|
tryFiles = "$uri $uri/ =404";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|