Modified backup start time

This commit is contained in:
Giulio De Pasquale 2022-04-05 14:05:08 +02:00
parent c18f4a590e
commit bc637c5710
3 changed files with 25 additions and 11 deletions

View File

@ -15,8 +15,8 @@
"--keep-yearly 3" "--keep-yearly 3"
]; ];
timerConfig = { timerConfig = {
OnCalendar = "monday 00:05"; OnCalendar = "monday 03:00";
RandomizedDelaySec = "2h"; RandomizedDelaySec = "1h";
}; };
}; };
}; };

View File

@ -1,8 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
let let
network = import ./network.nix; network = import ./network.nix;
domain = "jellyfin.giugl.io"; domain = "media.giugl.io";
in { in {
disabledModules = [ "services/misc/jellyfin.nix" ]; disabledModules = [ "services/misc/jellyfin.nix" ];
imports = [ ./modules/jellyfin.nix ]; imports = [ ./modules/jellyfin.nix ];
@ -15,11 +15,27 @@ in {
}; };
nginx.virtualHosts.${domain} = { nginx.virtualHosts.${domain} = {
# forceSSL = true; forceSSL = true;
# enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:8096"; proxyPass = "http://localhost:8096";
extraConfig = '' extraConfig = ''
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
locations."/socket" = {
proxyPass = "http://localhost:8096";
proxyWebsockets = true;
extraConfig = ''
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
allow 10.0.0.0/24; allow 10.0.0.0/24;
allow 10.3.0.0/24; allow 10.3.0.0/24;
deny all; deny all;

View File

@ -50,12 +50,10 @@ in {
serviceConfig = rec { serviceConfig = rec {
User = cfg.user; User = cfg.user;
Group = cfg.group; Group = cfg.group;
# # Allows access to drm devices for transcoding with hardware acceleration StateDirectory = "/jellyfin";
# SupplementaryGroups = [ "video" ]; CacheDirectory = "/jellyfin/cache";
StateDirectory = "jellyfin";
CacheDirectory = "jellyfin";
ExecStart = ExecStart =
"${cfg.package}/bin/jellyfin --datadir '/var/lib/${StateDirectory}' --cachedir '/var/cache/${CacheDirectory}'"; "${cfg.package}/bin/jellyfin --datadir '/jellyfin' --cachedir '/jellyfin/cache'";
Restart = "on-failure"; Restart = "on-failure";
# Security options: # Security options: