1{...}: { 2 imports = [ 3 ./keine.nix 4 ]; 5 6 services.nginx.virtualHosts."_" = { 7 default = true; 8 useACMEHost = "global.c.soopy.moe"; 9 forceSSL = true; 10 # locations."/".return = "301 https://gensokyo.soopy.moe"; 11 12 # TODO: remove after bringing back up all the services. 13 locations = { 14 "/".return = "503"; 15 "~ ^/(index.html|splash.png)".root = "/srv/www/maintenance"; 16 }; 17 extraConfig = '' 18 error_page 503 /index.html; 19 ''; 20 }; 21}