add jellyfin

This commit is contained in:
sadan 2025-03-09 19:11:04 -04:00
parent 73a7da10ef
commit 8deb26239b
No known key found for this signature in database
4 changed files with 47 additions and 4 deletions

View file

@ -0,0 +1,36 @@
{config, ...}: {
users = {
groups = {
media = {
gid = 1002;
};
};
};
services = {
jellyfin = {
dataDir = "${config.fileSystems."/storage".mountPoint}/jfData/";
group = "media";
enable = true;
};
};
services = {
nginx = {
virtualHosts = {
"jf.sadan.zip" = {
forceSSL = true;
useACMEHost = "sadan.zip";
locations = {
"/" = {
proxyPass = "http://localhost:8096";
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
'';
};
};
};
};
};
};
}

View file

@ -4,10 +4,10 @@
nginx = {
enable = true;
logError = "syslog:server=unix:/dev/log warn";
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
recommendedOptimisation = true;
# recommendedTlsSettings = true;
# recommendedGzipSettings = true;
# recommendedProxySettings = true;
# recommendedOptimisation = true;
resolver = {
addresses = [
"1.0.0.1"