From 76f380b38ae62c55b9589e91c760a8c96047fff8 Mon Sep 17 00:00:00 2001 From: Random936 Date: Thu, 21 Aug 2025 20:50:04 -0700 Subject: [PATCH] Updated media hardware/config --- config/media.nix | 40 +++++++++++++++++++++++++++++++--------- hardware/media.nix | 4 ++-- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/config/media.nix b/config/media.nix index 337abda..4605c2f 100644 --- a/config/media.nix +++ b/config/media.nix @@ -102,6 +102,7 @@ services.nginx = { enable = true; virtualHosts = { + # Landing Page (randomctf.com) "randomctf.com" = { enableACME = true; @@ -126,24 +127,45 @@ ''; locations."/".extraConfig = '' + allow 192.168.100.0/24; + deny all; + proxy_buffering off; proxy_pass http://localhost:8096/; ''; }; + # Kiwix + "kiwix.randomctf.com" = { + enableACME = true; + forceSSL = true; + + extraConfig = '' + access_log /var/log/nginx/access.kiwix.log; + ''; + + locations."/".extraConfig = '' + allow 192.168.100.0/24; + deny all; + + proxy_buffering off; + proxy_pass http://localhost:8080/; + ''; + }; + # Gitea "git.randomctf.com" = { - enableACME = true; - forceSSL = true; + enableACME = true; + forceSSL = true; - extraConfig = '' - access_log /var/log/nginx/access.git.log; - ''; + extraConfig = '' + access_log /var/log/nginx/access.git.log; + ''; - locations."/".extraConfig = '' - proxy_buffering off; - proxy_pass http://localhost:3300/; - ''; + locations."/".extraConfig = '' + proxy_buffering off; + proxy_pass http://localhost:3300/; + ''; }; }; }; diff --git a/hardware/media.nix b/hardware/media.nix index 0a38e00..e2b4bed 100644 --- a/hardware/media.nix +++ b/hardware/media.nix @@ -19,12 +19,12 @@ }; fileSystems."/mnt/media" = - { device = "/dev/disk/by-uuid/b579c911-e74c-4f03-b918-a4e5a6b764ab"; + { device = "/dev/disk/by-uuid/e9df1e21-553e-43e2-bceb-8a5e274a95b7"; fsType = "ext4"; }; fileSystems."/mnt/files" = - { device = "/dev/disk/by-uuid/f3a62e58-9556-47d7-b78b-3211f269f4ce"; + { device = "/dev/disk/by-uuid/efc25f40-0cad-404b-8113-526ad5a30539"; fsType = "ext4"; };