1{_utils, ...}: { 2 services.nginx.virtualHosts."keine.soopy.moe" = _utils.mkVhost { 3 forceSSL = false; 4 addSSL = true; # Don't force SSL on a mirror (implications TBD) 5 6 root = "/srv/www/keine"; 7 locations = { 8 "/".extraConfig = '' 9 fancyindex_header "/theme/index_header.html"; 10 ''; 11 "/theme/".alias = "/srv/www/misc/keine/theme/"; 12 "/static/".alias = "/srv/www/misc/keine/theme/static/"; 13 }; 14 15 extraConfig = '' 16 fancyindex on; 17 fancyindex_header "/theme/header.html"; 18 fancyindex_footer "/theme/footer.html"; 19 fancyindex_show_path off; 20 fancyindex_name_length 255; 21 fancyindex_exact_size off; 22 fancyindex_localtime on; 23 ''; 24 }; 25}