Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Nov 27, 2024
1 parent 266844d commit c1d59cf
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 91 deletions.
1 change: 1 addition & 0 deletions nixos/hosts/fra1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
nixosModules.services.sogo
nixosModules.services.pastebin
nixosModules.services.ollama
nixosModules.services.jellyfin
(import nixosModules.services.matrix { })
(import nixosModules.services.keycloak { })
(import nixosModules.services.vaultwarden { })
Expand Down
24 changes: 24 additions & 0 deletions nixos/modules/services/jellyfin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ ... }:
let
portNumber = 8096;
in
{
services.jellyfin.enable = true;
users.users.jellyfin.extraGroups = [ "media" ];

services.traefik.dynamicConfigOptions.http = {
routers = {
jellyfin = {
rule = "Host(`jellyfin.${config.networking.domain}`)";
entryPoints = [ "https" ];
service = "jellyfin";
};
};
services = {
jellyfin.loadBalancer = {
passHostHeader = true;
servers = [ { url = "http://localhost:${toString portNumber}"; } ];
};
};
};
}
Loading

0 comments on commit c1d59cf

Please sign in to comment.