infrastructure/config/services/filehost/default.nix
2021-09-01 22:35:07 +01:00

17 lines
383 B
Nix

{ config, lib, pkgs, ... }:
{
services.nginx.virtualHosts = {
"files.${config.network.dns.domain}" = {
root = "/var/www/files";
enableACME = true;
forceSSL = true;
};
};
deploy.tf.dns.records.services_filehost = {
inherit (config.network.dns) zone;
domain = "files";
cname = { inherit (config.network.addresses.public) target; };
};
}