direct jakstys.lt to hel1-a

This commit is contained in:
Motiejus Jakštys 2023-03-26 14:13:30 +03:00
parent 26e8e66325
commit 3578bab44d

View File

@ -35,7 +35,7 @@ let
zfs_name = "rpool/nixos/var/log"; zfs_name = "rpool/nixos/var/log";
paths = [ "/var/log/.snapshot-latest/caddy/" ]; paths = [ "/var/log/.snapshot-latest/caddy/" ];
patterns = [ 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"; backup_at = "*-*-* 00:10:00";
@ -321,9 +321,12 @@ in {
virtualHosts."turn.jakstys.lt".extraConfig = '' virtualHosts."turn.jakstys.lt".extraConfig = ''
redir https://jakstys.lt redir https://jakstys.lt
''; '';
virtualHosts."beta.jakstys.lt" = { virtualHosts."www.jakstys.lt".extraConfig = ''
redir https://jakstys.lt
'';
virtualHosts."jakstys.lt" = {
logFormat = '' logFormat = ''
output file ${config.services.caddy.logDir}/access-beta.jakstys.lt.log { output file ${config.services.caddy.logDir}/access-jakstys.lt.log {
roll_disabled roll_disabled
} }
''; '';
@ -469,7 +472,7 @@ in {
logrotate = { logrotate = {
settings = { settings = {
"/var/log/caddy/access-beta.jakstys.lt.log" = { "/var/log/caddy/access-jakstys.lt.log" = {
rotate = 60; rotate = 60;
frequency = "daily"; frequency = "daily";
dateext = true; dateext = true;
@ -501,8 +504,8 @@ in {
@ SOA ns1.jakstys.lt. motiejus.jakstys.lt. (2023032100 86400 86400 86400 86400) @ SOA ns1.jakstys.lt. motiejus.jakstys.lt. (2023032100 86400 86400 86400 86400)
@ NS ns1.jakstys.lt. @ NS ns1.jakstys.lt.
@ NS ns2.jakstys.lt. @ NS ns2.jakstys.lt.
@ 600 A ${ips.hel1b} @ 600 A ${ips.hel1a}
www 600 A ${ips.hel1b} www 600 A ${ips.hel1a}
ns1 A ${ips.vno1} ns1 A ${ips.vno1}
ns2 A ${ips.hel1a} ns2 A ${ips.hel1a}
beta A ${ips.hel1a} beta A ${ips.hel1a}