Skip to content

Commit

Permalink
Remove typesense #1138
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Jan 31, 2024
1 parent 6b585e1 commit 380aa1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 1 addition & 4 deletions immich/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
"REDIS_HOSTNAME": "localhost",
"REDIS_PORT": "6379",
"REVERSE_GEOCODING_DUMP_DIRECTORY": "/data/.reverse-geocoding-dump/",
"TRANSFORMERS_CACHE": "/data/machine-learning",
"TYPESENSE_DATA_DIR": "/data/typesense"
"TRANSFORMERS_CACHE": "/data/machine-learning"
},
"image": "ghcr.io/alexbelgium/immich-{arch}",
"init": false,
Expand All @@ -100,7 +99,6 @@
"JWT_SECRET": "jt+OVWY6WqKJXw3xF5qOxN5L5/f4u2jlIlCQgWS3E4w=",
"PGID": 1000,
"PUID": 1000,
"TYPESENSE_ENABLED": true,
"TZ": "Europe/Paris",
"data_location": "/share/immich"
},
Expand All @@ -127,7 +125,6 @@
"MACHINE_LEARNING_WORKER_TIMEOUT": "int?",
"PGID": "int",
"PUID": "int",
"TYPESENSE_ENABLED": "bool",
"TZ": "str?",
"cifsdomain": "str?",
"cifspassword": "str?",
Expand Down
11 changes: 9 additions & 2 deletions immich/rootfs/etc/cont-init.d/20-folders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
# shellcheck shell=bash
set -e

##########################
# MIGRATIONS AND UPDATES #
##########################

# Clean typesense
if [ -d /data/typesense ]; then
rm -r /data/typesense
fi

#################
# DATA_LOCATION #
#################
Expand Down Expand Up @@ -31,10 +40,8 @@ ln -sf "$DATA_LOCATION" /photos
chown -R "$PUID":"$PGID" /photos

mkdir -p "$MACHINE_LEARNING_CACHE_FOLDER"
mkdir -p "$TYPESENSE_DATA_DIR"
mkdir -p "$REVERSE_GEOCODING_DUMP_DIRECTORY"
chown -R "$PUID":"$PGID" "$MACHINE_LEARNING_CACHE_FOLDER"
chown -R "$PUID":"$PGID" "$TYPESENSE_DATA_DIR"
chown -R "$PUID":"$PGID" "$REVERSE_GEOCODING_DUMP_DIRECTORY"
chown -R "$PUID":"$PGID" /data
chmod 777 /data
Expand Down

0 comments on commit 380aa1f

Please sign in to comment.