refactor networking domain

This commit is contained in:
Rouven Seifert 2023-09-19 13:47:08 +02:00
parent 5cbf915808
commit 671f4eb06c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
17 changed files with 125 additions and 87 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
@ -8,16 +8,16 @@
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."rfive.de" = {
virtualHosts."${config.networking.domain}" = {
enableACME = true;
forceSSL = true;
root = "/srv/web/rfive.de";
root = "/srv/web/${config.networking.domain}";
};
};
security.acme = {
acceptTerms = true;
defaults = {
email = "rouven@rfive.de";
email = "rouven@${config.networking.domain}";
};
};
}