Immich: increase disk resource; add logic for determining upload location change

- Increasing disk resources to 20GB
- Adding 'IMMICH_MEDIA_LOCATION' env var to .env - edit this to change
Immich upload location
- Read IMMICH_MEDIA_LOCATION from env during update for dynamic symlinks
This commit is contained in:
vhsdream 2025-05-24 09:44:57 -04:00
parent 1c484d21be
commit 8b89fb0b52
3 changed files with 9 additions and 3 deletions

View File

@ -7,7 +7,7 @@ source <(curl -s https://git.community-scripts.org/community-scripts/ProxmoxVED/
APP="immich"
var_tags="${var_tags:-photos}"
var_disk="${var_disk:-16}"
var_disk="${var_disk:-20}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_os="${var_os:-debian}"
@ -219,7 +219,7 @@ EOF
msg_ok "Database upgrade complete"
fi
INSTALL_DIR="/opt/${APP}"
UPLOAD_DIR="${INSTALL_DIR}/upload"
UPLOAD_DIR="$(sed -n '/IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)"
SRC_DIR="${INSTALL_DIR}/source"
APP_DIR="${INSTALL_DIR}/app"
ML_DIR="${APP_DIR}/machine-learning"

View File

@ -21,7 +21,7 @@
"resources": {
"cpu": 4,
"ram": 4096,
"hdd": 16,
"hdd": 20,
"os": "Debian",
"version": "12"
}
@ -39,6 +39,10 @@
{
"text": "If using OpenVINO HW machine-learning, increase RAM because OpenVINO is memory-intensive",
"type": "info"
},
{
"text": "To change upload location, edit 'IMMICH_MEDIA_LOCATION' in `/opt/immich/.env`",
"type": "info"
}
]
}

View File

@ -385,6 +385,8 @@ DB_VECTOR_EXTENSION=vectorchord
REDIS_HOSTNAME=127.0.0.1
IMMICH_MACHINE_LEARNING_URL=http://127.0.0.1:3003
MACHINE_LEARNING_CACHE_FOLDER=${INSTALL_DIR}/cache
IMMICH_MEDIA_LOCATION=${UPLOAD_DIR}
EOF
cat <<EOF >"${ML_DIR}"/ml_start.sh
#!/usr/bin/env bash