nixos-config/2configs/nginx/update.connector.one.nix

21 lines
384 B
Nix

{ config, lib, pkgs, ... }:
with pkgs.stockholm.lib;
{
services.nginx = {
enable = mkDefault true;
virtualHosts."update.connector.one" = {
locations = {
"/" = {
root = "/var/www/update.connector.one";
extraConfig = ''
autoindex on;
sendfile on;
gzip on;
'';
};
};
};
};
}