Updates to media nginx subdomains

This commit is contained in:
Random936 2025-03-26 11:16:03 -07:00
parent adf8e5d578
commit 4939beab9b

View File

@ -103,64 +103,63 @@
services.nginx = {
enable = true;
virtualHosts = {
# Landing Page (randomctf.com)
"randomctf.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/randomctf.com";
};
# Landing Page (randomctf.com)
"randomctf.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/randomctf.com";
};
# Nextcloud
${config.services.nextcloud.hostName} = {
enableACME = true;
forceSSL = true;
};
# Nextcloud
${config.services.nextcloud.hostName} = {
enableACME = true;
forceSSL = true;
};
# Jellyfin
"media.randomctf.com" = {
enableACME = true;
forceSSL = true;
# Jellyfin
"media.randomctf.com" = {
extraConfig = ''
access_log /var/log/nginx/access.media.log;
'';
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:8096/;
'';
};
# Gitea
"git.randomctf.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
access_log /var/log/nginx/access.media.log;
access_log /var/log/nginx/access.git.log;
'';
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:8096/;
proxy_pass http://localhost:3300/;
'';
};
};
# Gitea
"git.randomctf.com" = {
enableACME = true;
forceSSL = true;
# Notifier CSE115A
"notifier-api.randomctf.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
access_log /var/log/nginx/access.git.log;
'';
extraConfig = ''
access_log /var/log/nginx/access.cse115a.log;
'';
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:3300/;
'';
};
# Notifier CSE115A
"notifier-api.randomctf.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
access_log /var/log/nginx/access.cse115a.log;
'';
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:5000/;
'';
};
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:5000/;
'';
};
};
};