Updated media hardware/config
This commit is contained in:
@@ -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/;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user