2025-01-20 15:00:10 -06:00
|
|
|
{...}: let
|
2024-10-17 17:32:14 -05:00
|
|
|
dom = "min.rip"; # TODO: hardcoding
|
2024-10-13 15:16:39 -05:00
|
|
|
in {
|
|
|
|
services.nginx.virtualHosts.${dom} = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
|
2024-10-13 18:14:29 -05:00
|
|
|
quic = true;
|
|
|
|
|
2024-10-13 15:16:39 -05:00
|
|
|
locations."/" = {
|
2025-01-20 15:00:10 -06:00
|
|
|
return = ''200 "hi!"'';
|
2024-10-13 15:16:39 -05:00
|
|
|
extraConfig = ''
|
|
|
|
add_header Cache-Control "max-age=15552000, must-revalidate";
|
2025-01-20 15:00:10 -06:00
|
|
|
add_header Content-type text/plain;
|
2024-10-13 15:16:39 -05:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
locations."/robots.txt" = {
|
|
|
|
priority = 10000;
|
|
|
|
return = ''200 "User-Agent: ia_archiver\nDisallow: /"'';
|
|
|
|
extraConfig = ''
|
|
|
|
add_header Content-Type text/plain;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|