27 lines
572 B
Nix
27 lines
572 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 =
|
|
# nginx
|
|
''
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
autoindex_format html;
|
|
autoindex_localtime on;
|
|
'';
|
|
};
|
|
};
|
|
}
|