egirls-nixos/ogdo.nix

36 lines
803 B
Nix
Raw Normal View History

2024-02-29 22:12:46 +00:00
{
users.groups.ogdo = { members = [ "nginx" "jaina" ]; };
services.nginx = {
enable = true;
# ꙮ.run
virtualHosts."xn--xx8a.run" = {
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
port = 80;
addr = "[::]";
}
# deliberately avoid listening with https
];
rejectSSL = true;
root = "/srv/ogdo";
extraConfig = ''
error_page 404 /;
2024-04-20 08:47:40 +00:00
access_log /var/log/nginx/ogdo.log combined;
2024-02-29 22:12:46 +00:00
'';
2024-02-29 22:14:01 +00:00
locations."/" = { index = "/index.html"; };
2024-02-29 22:12:46 +00:00
2024-02-29 22:14:01 +00:00
locations."/v" = { tryFiles = "/Ogdo-V-corrected.pdf =404"; };
locations."/iv" = { tryFiles = "/Ogdo-IV.pdf =404"; };
locations."/1031" = { tryFiles = "/Halloween-special-updated.pdf =404"; };
2024-02-29 22:12:46 +00:00
};
};
}