diff --git a/ct/immich.sh b/ct/immich.sh index bdeb2a2df..4dd344a3b 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -109,7 +109,7 @@ EOF msg_ok "Image-processing libraries up to date" fi - RELEASE="v2.6.3" + RELEASE="v2.7.2" if check_for_gh_release "Immich" "immich-app/immich" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then if [[ $(cat ~/.immich) > "2.5.1" ]]; then msg_info "Enabling Maintenance Mode" @@ -269,6 +269,9 @@ EOF if ! grep -q '^DB_HOSTNAME=' "$INSTALL_DIR"/.env; then sed -i '/^DB_DATABASE_NAME/a DB_HOSTNAME=127.0.0.1' "$INSTALL_DIR"/.env fi + if ! grep -q 'HELMET_FILE' "$INSTALL_DIR"/.env; then + echo "IMMICH_HELMET_FILE=true" >>"$INSTALL_DIR"/.env + fi if grep -q 'ExecStart=/usr/bin/node' /etc/systemd/system/immich-web.service; then sed -i '/^EnvironmentFile=/d' /etc/systemd/system/immich-web.service diff --git a/install/immich-install.sh b/install/immich-install.sh index 2d04dc105..e926cc409 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -295,7 +295,7 @@ ML_DIR="${APP_DIR}/machine-learning" GEO_DIR="${INSTALL_DIR}/geodata" mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache} -fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v2.6.3" "$SRC_DIR" +fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v2.7.2" "$SRC_DIR" PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)" NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs @@ -419,6 +419,9 @@ IMMICH_VERSION=release NODE_ENV=production IMMICH_ALLOW_SETUP=true +## Change to 'false' to disable CSP +IMMICH_HELMET_FILE=true + DB_HOSTNAME=127.0.0.1 DB_USERNAME=${PG_DB_USER} DB_PASSWORD=${PG_DB_PASS}