Updated media hardware/config

This commit is contained in:
Random936 2025-08-21 20:50:04 -07:00
parent 8706141dee
commit 76f380b38a
2 changed files with 33 additions and 11 deletions

View File

@ -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/;
'';
};
};
};

View File

@ -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";
};