Nix-Config/system/shared/services/nginx.nix

28 lines
527 B
Nix
Raw Normal View History

2023-07-07 07:22:46 +00:00
{ config, pkgs, inputs, ... }:
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."syncthing.tsvallender.co.uk" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8384";
};
2023-07-07 07:22:46 +00:00
};
};
security.acme = {
acceptTerms = true;
defaults = {
email = "t+acme@tsvallender.co.uk";
};
};
2023-07-07 07:22:46 +00:00
}