Skip to content

Commit

Permalink
Clarify port listening patch
Browse files Browse the repository at this point in the history
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
  • Loading branch information
arter97 committed Apr 8, 2024
1 parent ec33d13 commit a089567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ In summary, the `install.sh` script does the following:

* Replaces `/usr/src` to `/var/lib/immich`.

* Limits listening host from 0.0.0.0 to 127.0.0.1 for microservices and machine-learning.
* 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.

## 6. Install systemd services

Expand All @@ -130,9 +130,9 @@ done

## Done!

Your Immich installation should be running at :3001 port.
Your Immich installation should be running at 3001 port, listening from localhost (127.0.0.1).

Immich will additionally use 3002 and 3003 ports, but those will only listen from localhost (127.0.0.1).
Immich will additionally use localhost's 3002 and 3003 ports.

Please add firewall rules and apply https proxy and secure your Immich instance.

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ mkdir -p $IMMICH_PATH/upload
ln -s $IMMICH_PATH/upload $APP/
ln -s $IMMICH_PATH/upload $APP/machine-learning/

# Use 127.0.0.1 for microservices
# Use 127.0.0.1
sed -i -e "s@app.listen(port)@app.listen(port, '127.0.0.1')@g" $APP/dist/main.js

# Custom start.sh script
Expand Down

0 comments on commit a089567

Please sign in to comment.