Add ogdo.run host

This commit is contained in:
jaina heartles 2024-02-29 14:12:46 -08:00
parent 44a854c09d
commit 0cc1a2fcf5
2 changed files with 35 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./hardware-configuration.nix
./misskey-service.nix
./heartles-xyz-proxy.nix
./ogdo.nix
];
nix.settings = {

34
ogdo.nix Normal file
View file

@ -0,0 +1,34 @@
{
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 /;
'';
location."/" = { index = "/index.html"; };
location."/v" = { tryFiles = "/Ogdo-V-corrected.pdf =404"; };
location."/iv" = { tryFiles = "/Ogdo-IV.pdf =404"; };
location."/1031" = { tryFiles = "/Halloween-special-updated.pdf =404"; };
};
};
}