feat: add jellyfin service to sv1
This commit is contained in:
parent
5491683867
commit
59e4df3e02
@ -161,7 +161,10 @@
|
|||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "acme.evict519@simplelogin.com";
|
defaults.email = "acme.evict519@simplelogin.com";
|
||||||
certs."dylanblades.com".extraDomainNames = ["gitea.dylanblades.com"];
|
certs."dylanblades.com".extraDomainNames = [
|
||||||
|
"gitea.dylanblades.com"
|
||||||
|
"jellyfin.dylanblades.com"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
@ -207,6 +210,7 @@
|
|||||||
ui.DEFAULT_THEME = "gitea-dark";
|
ui.DEFAULT_THEME = "gitea-dark";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
jellyfin.enable = true;
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
@ -231,6 +235,23 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"jellyfin.dylanblades.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "dylanblades.com";
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:8096";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 20M;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -242,6 +263,7 @@
|
|||||||
directories = [
|
directories = [
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
"/var/lib/gitea"
|
"/var/lib/gitea"
|
||||||
|
"/var/lib/jellyfin"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user