From 3578bab44d0a05e087ff21b36d2bdd0cd3b7d6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 26 Mar 2023 14:13:30 +0300 Subject: [PATCH] direct jakstys.lt to hel1-a --- configuration.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 77e169c..fee2b16 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,7 +35,7 @@ let zfs_name = "rpool/nixos/var/log"; paths = [ "/var/log/.snapshot-latest/caddy/" ]; patterns = [ - "+ /var/log/.snapshot-latest/caddy/access-beta.jakstys.lt.log-*.zst" + "+ /var/log/.snapshot-latest/caddy/access-jakstys.lt.log-*.zst" "- *" ]; backup_at = "*-*-* 00:10:00"; @@ -321,9 +321,12 @@ in { virtualHosts."turn.jakstys.lt".extraConfig = '' redir https://jakstys.lt ''; - virtualHosts."beta.jakstys.lt" = { + virtualHosts."www.jakstys.lt".extraConfig = '' + redir https://jakstys.lt + ''; + virtualHosts."jakstys.lt" = { logFormat = '' - output file ${config.services.caddy.logDir}/access-beta.jakstys.lt.log { + output file ${config.services.caddy.logDir}/access-jakstys.lt.log { roll_disabled } ''; @@ -469,7 +472,7 @@ in { logrotate = { settings = { - "/var/log/caddy/access-beta.jakstys.lt.log" = { + "/var/log/caddy/access-jakstys.lt.log" = { rotate = 60; frequency = "daily"; dateext = true; @@ -501,8 +504,8 @@ in { @ SOA ns1.jakstys.lt. motiejus.jakstys.lt. (2023032100 86400 86400 86400 86400) @ NS ns1.jakstys.lt. @ NS ns2.jakstys.lt. - @ 600 A ${ips.hel1b} - www 600 A ${ips.hel1b} + @ 600 A ${ips.hel1a} + www 600 A ${ips.hel1a} ns1 A ${ips.vno1} ns2 A ${ips.hel1a} beta A ${ips.hel1a}