mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-25 21:57:00 -04:00
add jellyfin
This commit is contained in:
parent
73a7da10ef
commit
8deb26239b
4 changed files with 47 additions and 4 deletions
36
common/systemModules/jellyfin.nix
Normal file
36
common/systemModules/jellyfin.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue