2016-02-01 21:58:54 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2016-12-24 23:38:01 +01:00
|
|
|
{
|
|
|
|
services.nginx = {
|
2016-02-01 21:58:54 +01:00
|
|
|
enable = mkDefault true;
|
2016-12-24 23:38:01 +01:00
|
|
|
virtualHosts."update.connector.one" = {
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
root = "/var/www/update.connector.one";
|
|
|
|
extraConfig = ''
|
|
|
|
autoindex on;
|
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
|
|
'';
|
|
|
|
};
|
2016-02-01 21:58:54 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|