2023-07-07 07:22:46 +00:00
|
|
|
{ config, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2023-07-07 15:42:17 +00:00
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
2023-07-07 07:22:46 +00:00
|
|
|
virtualHosts."test.tsvallender.co.uk" = {
|
2023-07-07 15:42:17 +00:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2023-07-07 07:22:46 +00:00
|
|
|
root = "/var/www/tsvallender.co.uk";
|
|
|
|
};
|
|
|
|
};
|
2023-07-07 15:42:17 +00:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults = {
|
|
|
|
email = "t+acme@tsvallender.co.uk";
|
|
|
|
};
|
|
|
|
};
|
2023-07-07 07:22:46 +00:00
|
|
|
}
|
|
|
|
|