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"
];
timerConfig = {
OnCalendar = "monday 00:05";
RandomizedDelaySec = "2h";
OnCalendar = "monday 03:00";
RandomizedDelaySec = "1h";
};
};
};

View File

@ -1,8 +1,8 @@
{ pkgs, ... }:
let
let
network = import ./network.nix;
domain = "jellyfin.giugl.io";
domain = "media.giugl.io";
in {
disabledModules = [ "services/misc/jellyfin.nix" ];
imports = [ ./modules/jellyfin.nix ];
@ -15,11 +15,27 @@ in {
};
nginx.virtualHosts.${domain} = {
# forceSSL = true;
# enableACME = true;
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8096";
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.3.0.0/24;
deny all;

View File

@ -50,12 +50,10 @@ in {
serviceConfig = rec {
User = cfg.user;
Group = cfg.group;
# # Allows access to drm devices for transcoding with hardware acceleration
# SupplementaryGroups = [ "video" ];
StateDirectory = "jellyfin";
CacheDirectory = "jellyfin";
StateDirectory = "/jellyfin";
CacheDirectory = "/jellyfin/cache";
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";
# Security options: