1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: increase proxy send timeout for immich, adjust some settings

This commit is contained in:
oddlama 2025-09-22 23:23:31 +02:00
parent 01d5056050
commit 140dba323c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 29 additions and 30 deletions

View file

@ -66,7 +66,7 @@ in
backup.database = { backup.database = {
cronExpression = "0 02 * * *"; cronExpression = "0 02 * * *";
enabled = true; enabled = true;
keepLastAmount = 14; keepLastAmount = 3;
}; };
ffmpeg = { ffmpeg = {
accel = "disabled"; accel = "disabled";
@ -151,7 +151,7 @@ in
facialRecognition = { facialRecognition = {
enabled = true; enabled = true;
maxDistance = 0.5; maxDistance = 0.5;
minFaces = 2; minFaces = 3;
minScore = 0.65; minScore = 0.65;
modelName = "buffalo_l"; modelName = "buffalo_l";
}; };
@ -204,7 +204,7 @@ in
storageTemplate = { storageTemplate = {
enabled = true; enabled = true;
hashVerificationEnabled = true; hashVerificationEnabled = true;
template = "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}"; template = "{{y}}/{{y}}-{{MM}}-{{dd}}/{{{filename}}}";
}; };
theme.customCss = ""; theme.customCss = "";
trash = { trash = {
@ -266,15 +266,14 @@ in
locations."/" = { locations."/" = {
proxyPass = "http://immich"; proxyPass = "http://immich";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = '''';
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 50G; client_max_body_size 50G;
proxy_buffering off; proxy_buffering off;
proxy_request_buffering off; proxy_request_buffering off;
proxy_read_timeout 1200s; proxy_read_timeout 3600s;
proxy_send_timeout 1200s; proxy_send_timeout 3600s;
send_timeout 1200s; send_timeout 3600s;
allow ${globals.net.home-lan.vlans.home.cidrv4}; allow ${globals.net.home-lan.vlans.home.cidrv4};
allow ${globals.net.home-lan.vlans.home.cidrv6}; allow ${globals.net.home-lan.vlans.home.cidrv6};
# Firezone traffic # Firezone traffic

View file

@ -361,6 +361,7 @@ in
MACHINE_LEARNING_WORKERS = "1"; MACHINE_LEARNING_WORKERS = "1";
MACHINE_LEARNING_WORKER_TIMEOUT = "120"; MACHINE_LEARNING_WORKER_TIMEOUT = "120";
MACHINE_LEARNING_CACHE_FOLDER = "/var/cache/immich"; MACHINE_LEARNING_CACHE_FOLDER = "/var/cache/immich";
XDG_CACHE_HOME = "/var/cache/immich";
IMMICH_HOST = "localhost"; IMMICH_HOST = "localhost";
IMMICH_PORT = "3003"; IMMICH_PORT = "3003";
}; };

View file

@ -5,15 +5,14 @@
... ...
}: }:
{ {
imports = imports = [
[
./discord.nix ./discord.nix
./firefox.nix ./firefox.nix
./kitty.nix ./kitty.nix
./signal.nix ./signal.nix
./theme.nix ./theme.nix
./thunderbird.nix ./thunderbird.nix
./ts3.nix # ./ts3.nix
# X11 # X11
./i3.nix ./i3.nix