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