Updated media hardware/config
This commit is contained in:
parent
8706141dee
commit
76f380b38a
@ -102,6 +102,7 @@
|
|||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
||||||
# Landing Page (randomctf.com)
|
# Landing Page (randomctf.com)
|
||||||
"randomctf.com" = {
|
"randomctf.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@ -126,11 +127,32 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
|
allow 192.168.100.0/24;
|
||||||
|
deny all;
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_pass http://localhost:8096/;
|
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
|
# Gitea
|
||||||
"git.randomctf.com" = {
|
"git.randomctf.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
@ -19,12 +19,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/media" =
|
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";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/files" =
|
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";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user