Updates to media nginx subdomains
This commit is contained in:
parent
adf8e5d578
commit
4939beab9b
@ -103,64 +103,63 @@
|
|||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
# Landing Page (randomctf.com)
|
||||||
|
"randomctf.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
root = "/var/www/randomctf.com";
|
||||||
|
};
|
||||||
|
|
||||||
# Landing Page (randomctf.com)
|
# Nextcloud
|
||||||
"randomctf.com" = {
|
${config.services.nextcloud.hostName} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = "/var/www/randomctf.com";
|
};
|
||||||
};
|
|
||||||
|
|
||||||
# Nextcloud
|
# Jellyfin
|
||||||
${config.services.nextcloud.hostName} = {
|
"media.randomctf.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
|
||||||
|
|
||||||
# Jellyfin
|
extraConfig = ''
|
||||||
"media.randomctf.com" = {
|
access_log /var/log/nginx/access.media.log;
|
||||||
|
'';
|
||||||
|
|
||||||
|
locations."/".extraConfig = ''
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_pass http://localhost:8096/;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Gitea
|
||||||
|
"git.randomctf.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
access_log /var/log/nginx/access.media.log;
|
access_log /var/log/nginx/access.git.log;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_pass http://localhost:8096/;
|
proxy_pass http://localhost:3300/;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Gitea
|
# Notifier CSE115A
|
||||||
"git.randomctf.com" = {
|
"notifier-api.randomctf.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
access_log /var/log/nginx/access.git.log;
|
access_log /var/log/nginx/access.cse115a.log;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_pass http://localhost:3300/;
|
proxy_pass http://localhost:5000/;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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/;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user