Add ogdo.run host
This commit is contained in:
parent
44a854c09d
commit
0cc1a2fcf5
2 changed files with 35 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./misskey-service.nix
|
./misskey-service.nix
|
||||||
./heartles-xyz-proxy.nix
|
./heartles-xyz-proxy.nix
|
||||||
|
./ogdo.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|
34
ogdo.nix
Normal file
34
ogdo.nix
Normal 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"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue