feat: expose jellyfin via nginx

This commit is contained in:
Felix Schröter 2021-05-27 11:24:03 +02:00
parent dfdea60dba
commit e9699357e6
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58

View file

@ -3,8 +3,16 @@
{ {
services.jellyfin.enable = true; services.jellyfin.enable = true;
services.jellyfin.user = "felschr"; services.jellyfin.user = "felschr";
networking.firewall.allowedTCPPorts = [ 8920 8096 1900 7359 ]; services.jellyfin.openFirewall = true;
# for hardware acceleration # for hardware acceleration
users.users.jellyfin.extraGroups = [ "video" ]; users.users.jellyfin.extraGroups = [ "video" "render" ];
services.nginx = {
virtualHosts."jellyfin.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:8096";
};
};
} }