From 64a568c7bcb16ce27ab0f7ba5853ecb950284769 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sun, 23 Feb 2025 18:07:28 -0800 Subject: [PATCH] CSE115A notifier and added jellyfin --- config/media.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/media.nix b/config/media.nix index e1eaa5b..0cb6b3a 100644 --- a/config/media.nix +++ b/config/media.nix @@ -42,6 +42,14 @@ dataDir = "/mnt/media/plex"; }; + # Jellyfin Setup + services.jellyfin = { + enable = true; + openFirewall = true; + user = "media"; + dataDir = "/mnt/media/jellyfin"; + }; + # Nextcloud Setup services.nextcloud = { enable = true; @@ -131,6 +139,21 @@ 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/; + ''; + }; }; }; @@ -138,6 +161,7 @@ acceptTerms = true; certs = { "randomctf.com".email = "admin@randomctf.com"; + "notifier-api.randomctf.com".email = "admin@randomctf.com"; ${config.services.nextcloud.hostName}.email = "admin@randomctf.com"; ${config.services.gitea.settings.server.DOMAIN}.email = "admin@randomctf.com"; };