2021-09-25 20:51:24 +00:00
|
|
|
{ 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;
|
2021-09-25 20:51:24 +00:00
|
|
|
};
|
|
|
|
services.nginx = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
virtualHosts."as205479.net" = {
|
|
|
|
useACMEHost = "as205479.net";
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".root = depot.web.as205479 config.networking.hostName;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|