nix-conf/system/dev/dn-server/network/nginx.nix
2026-01-20 13:41:53 +08:00

25 lines
472 B
Nix
Executable file

{
config,
...
}:
let
inherit (config.networking) domain;
gcpIP = "10.10.0.1";
in
{
services.nginx = {
enable = true;
enableReload = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
recommendedProxySettings = true;
virtualHosts."manage.stalwart.${domain}" = {
useACMEHost = domain;
forceSSL = true;
locations."/".proxyPass = "http://${gcpIP}:8081";
};
};
}