depot/ops/nixos/lib/as205479-web.nix

18 lines
435 B
Nix
Raw Normal View History

{ config, depot, lib, ... }:
{
2022-01-04 14:00:45 +00:00
security.acme.certs."as205479.net" = {
dnsProvider = "gcloud";
credentialsFile = depot.ops.secrets.gcpDNSCredentials;
dnsPropagationCheck = false;
};
services.nginx = {
enable = lib.mkDefault true;
virtualHosts."as205479.net" = {
useACMEHost = "as205479.net";
forceSSL = true;
locations."/".root = depot.web.as205479 config.networking.hostName;
};
};
}