mirror of
https://github.com/iio612/immich-native.git
synced 2026-04-15 03:11:05 +00:00
Remove localhost patch and update instruction
Since the immich-native project was born, upstream now properly reads and honors IMMICH_HOST. Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
@@ -144,7 +144,7 @@ In summary, the `install.sh` script does the following:
|
|||||||
|
|
||||||
* Replaces `/usr/src` to `/var/lib/immich`.
|
* Replaces `/usr/src` to `/var/lib/immich`.
|
||||||
|
|
||||||
* Limits listening host from 0.0.0.0 to 127.0.0.1. If you do not want this to happen (make sure you fully understand the security risks!), comment out the `sed` command in `install.sh`'s "Use 127.0.0.1" part.
|
* Limits listening host from 0.0.0.0 to 127.0.0.1. If you do not want this to happen (make sure you fully understand the security risks!), change `IMMICH_HOST=127.0.0.1` to `IMMICH_HOST=0.0.0.0` from the `env` file.
|
||||||
|
|
||||||
## Done!
|
## Done!
|
||||||
|
|
||||||
|
|||||||
@@ -60,15 +60,6 @@ cd $TMP
|
|||||||
git reset --hard $REV
|
git reset --hard $REV
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
|
|
||||||
# Use 127.0.0.1
|
|
||||||
find . -type f \( -name '*.ts' -o -name '*.js' \) -exec grep app.listen {} + | \
|
|
||||||
sed 's/.*app.listen//' | grep -v '()' | grep '^(' | \
|
|
||||||
tr -d "[:blank:]" | awk -F"[(),]" '{print $2}' | sort | uniq | while read port; do
|
|
||||||
find . -type f \( -name '*.ts' -o -name '*.js' \) -exec sed -i -e "s@app.listen(${port})@app.listen(${port}, '127.0.0.1')@g" {} +
|
|
||||||
done
|
|
||||||
find . -type f \( -name '*.ts' -o -name '*.js' \) -exec sed -i -e "s@PrometheusExporter({ port })@PrometheusExporter({ host: '127.0.0.1', port: port })@g" {} +
|
|
||||||
grep -RlE "\"0\.0\.0\.0\"|'0\.0\.0\.0'" | xargs -n1 sed -i -e "s@'0\.0\.0\.0'@'127.0.0.1'@g" -e 's@"0\.0\.0\.0"@"127.0.0.1"@g'
|
|
||||||
|
|
||||||
# Replace /usr/src
|
# Replace /usr/src
|
||||||
grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g"
|
grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g"
|
||||||
mkdir -p $IMMICH_PATH/cache
|
mkdir -p $IMMICH_PATH/cache
|
||||||
|
|||||||
Reference in New Issue
Block a user