2024-02-25 15:06:29 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2024-05-08 20:57:07 +00:00
|
|
|
systemd.tmpfiles.rules = [ "d '/srv/www/miom.space' 0750 hakkonaut hakkonaut - -" ];
|
2024-02-25 15:06:29 +00:00
|
|
|
|
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
"www.miom.space" = {
|
|
|
|
enableACME = true;
|
|
|
|
addSSL = true;
|
2024-02-25 15:44:01 +00:00
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
error_log /dev/null;
|
|
|
|
access_log /dev/null;
|
|
|
|
'';
|
|
|
|
|
2024-02-25 15:06:29 +00:00
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 https://miom.space$request_uri;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"miom.space" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
2024-02-25 15:44:01 +00:00
|
|
|
extraConfig = ''
|
|
|
|
error_log /dev/null;
|
|
|
|
access_log /dev/null;
|
|
|
|
'';
|
|
|
|
|
2024-02-25 15:06:29 +00:00
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
root = "/srv/www/miom.space";
|
|
|
|
index = "index.html";
|
|
|
|
tryFiles = "$uri $uri/ =404";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|