fix(deertopia): Jellyfin and Copyparty umasks
This commit is contained in:
@@ -19,9 +19,18 @@ in {
|
|||||||
|
|
||||||
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
||||||
|
|
||||||
|
# HACK: Ad-hoc permissions, as typical.
|
||||||
|
users.users.copyparty.extraGroups = [ "jellyfin" ];
|
||||||
|
|
||||||
|
# HACK: Make files created by copypaste.service initialise with the mode
|
||||||
|
# 775.
|
||||||
|
systemd.services.copyparty.serviceConfig.UMask = lib.mkForce "002";
|
||||||
|
|
||||||
services.copyparty = {
|
services.copyparty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
# These three options are necessary for SSO integration. No idea what
|
||||||
|
# they do. }:)
|
||||||
xff-src = "lan";
|
xff-src = "lan";
|
||||||
idp-h-usr = "remote-user";
|
idp-h-usr = "remote-user";
|
||||||
idp-h-grp = "remote-groups";
|
idp-h-grp = "remote-groups";
|
||||||
@@ -42,6 +51,8 @@ in {
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
include ${./authelia/authelia-location.conf};
|
include ${./authelia/authelia-location.conf};
|
||||||
|
# Increase limit of upload sizes.
|
||||||
|
client_max_body_size 20G;
|
||||||
'';
|
'';
|
||||||
locations."/".extraConfig = ''
|
locations."/".extraConfig = ''
|
||||||
include ${./authelia/authelia-authrequest.conf};
|
include ${./authelia/authelia-authrequest.conf};
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ in {
|
|||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# HACK: Force the mode 664 upon Jellyfin-created files.
|
||||||
|
systemd.services.jellyfin.serviceConfig.UMask = lib.mkForce "002";
|
||||||
|
|
||||||
sydnix.deertopia.nginx.vhosts."watch".vhost =
|
sydnix.deertopia.nginx.vhosts."watch".vhost =
|
||||||
# Currently no (convenient) way to specify Jellyfin's port from Nix.
|
# Currently no (convenient) way to specify Jellyfin's port from Nix.
|
||||||
let port = builtins.toString 8096;
|
let port = builtins.toString 8096;
|
||||||
|
|||||||
Reference in New Issue
Block a user