mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
17 lines
389 B
Nix
17 lines
389 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 = {
|
|
tld = config.network.dns.tld;
|
|
domain = "files";
|
|
cname.target = "${config.networking.hostName}.${config.network.dns.tld}";
|
|
};
|
|
}
|