aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-09-08 21:24:36 +0000
committerKumar Damani <me@kumardamani.net>2026-09-08 21:24:36 +0000
commite670053b30b34e52fa5da360fdce0e8ad7ece651 (patch)
treecc7241b068e5bb597b3e69272d82f78d6f2e3271
parent8c11bcea7cf21619343e49b926c6113a08090893 (diff)
routine updates
-rw-r--r--nix/per-host/git/configuration.nix12
-rw-r--r--nix/per-host/rproxy-2/configuration.nix10
2 files changed, 22 insertions, 0 deletions
diff --git a/nix/per-host/git/configuration.nix b/nix/per-host/git/configuration.nix
index d7c4cc4..65e5636 100644
--- a/nix/per-host/git/configuration.nix
+++ b/nix/per-host/git/configuration.nix
@@ -86,6 +86,7 @@ in
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAYYjB+fK4JFlJSY6Ax48p38eSuDG12VQVqP+WSrWGuO"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICibsvCxDu0uC0yAKasqV6hApgVr83JIuEN9dcsXHxeN"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILD30HCL18K56oUNMvnwqMsnmJbqXuieVfHnqCnksrqR"
];
};
users.groups.git = { };
@@ -138,5 +139,16 @@ in
# Headroom for large git operations
swapDevices = [ { device = "/var/lib/swapfile"; size = 2048; } ];
+ services.logrotate = {
+ enable = true;
+ settings = {
+ "nginx" = {
+ files = [ "/var/log/nginx/*.log" ];
+ frequency = "hourly";
+ rotate = 3;
+ size = "10M";
+ };
+ };
+ };
};
}
diff --git a/nix/per-host/rproxy-2/configuration.nix b/nix/per-host/rproxy-2/configuration.nix
index efa75eb..d71806b 100644
--- a/nix/per-host/rproxy-2/configuration.nix
+++ b/nix/per-host/rproxy-2/configuration.nix
@@ -42,6 +42,16 @@
# tls internal
# '';
+ virtualHosts."ag.kumardamani.net:443".extraConfig = ''
+ reverse_proxy localhost:9931
+ tls {
+ dns namecheap {
+ api_key {$NAMECHEAP_API_KEY}
+ user {$NAMECHEAP_API_USER}
+ }
+ }
+ '';
+
virtualHosts."lidarr.kumardamani.net:443".extraConfig = ''
reverse_proxy med-dl:8686
tls {