2017-08-01 18:47:34 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
|
|
|
|
{
|
|
|
|
services.nginx = {
|
2023-07-23 21:11:54 +00:00
|
|
|
enable = true;
|
2017-08-01 18:47:34 +00:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
2021-10-26 19:03:07 +00:00
|
|
|
enableReload = true;
|
2017-08-01 18:47:34 +00:00
|
|
|
|
|
|
|
virtualHosts.default = {
|
|
|
|
locations."= /etc/os-release".extraConfig = ''
|
|
|
|
default_type text/plain;
|
|
|
|
alias /etc/os-release;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|