nixos/hosts/architect/nginx.nix

40 lines
753 B
Nix
Raw Normal View History

2021-07-07 10:45:37 +01:00
{services, ...}:
{
security.acme.acceptTerms = true;
security.acme.email = "giupi@giugl.io";
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
2021-08-09 16:39:45 +01:00
virtualHosts."giugl.io" = {
default = true;
enableACME = true;
addSSL = true;
root = "/var/lib/nginx/error_pages";
extraConfig = "error_page 404 /index.htm;";
locations = {
"/" = {
return = "404";
};
"/index.htm" = {
};
"/style.css" = {
};
"/wat.jpg" = {
};
};
};
2021-07-07 10:45:37 +01:00
};
2021-08-07 12:38:18 +01:00
users.groups.acme.members = [ "nginx" ];
2021-07-07 10:45:37 +01:00
}