infra/config/services/website/default.nix

25 lines
538 B
Nix

{
services.nginx.virtualHosts."winston.sh" = {
forceSSL = true;
enableACME = false;
useACMEHost = "winston.sh";
locations."/".root = ./www;
};
services.nginx.virtualHosts."experiments.winston.sh" = {
forceSSL = true;
enableACME = false;
useACMEHost = "winston.sh";
locations."/" = {
root = "/var/lib/winston.sh/experiments";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
'';
};
};
}