Compare commits
357 commits
feat/unmer
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
e1739ac4fc | ||
|
8736c77f7a | ||
|
338a028185 | ||
|
e2d0e944eb | ||
|
f53b70571b | ||
|
2814de4420 | ||
|
024fe1141b | ||
|
086a957a2b | ||
|
84c5b08c25 | ||
|
7e8488694d | ||
|
231b89c9c0 | ||
|
d5f6584e1d | ||
|
7702560b12 | ||
|
982183600d | ||
|
933c24ea6f | ||
|
05e9697dff | ||
|
259700c45f | ||
|
22d79850f6 | ||
|
56aed8246d | ||
|
ca1be71bca | ||
|
6111bf157e | ||
|
2195730fa6 | ||
|
1dc832d392 | ||
|
1a63d3837e | ||
|
bdbaa166d9 | ||
|
812e67d55d | ||
|
dfd6846deb | ||
|
6d3421a505 | ||
|
ede9de146a | ||
|
6959cf689b | ||
|
36ba48b8ae | ||
|
8a2b36ad55 | ||
|
6000c7f3bc | ||
|
5aa658de59 | ||
|
6673f1eb24 | ||
|
a02e91169d | ||
|
ec92608024 | ||
|
5a50d32748 | ||
|
cbdcbd3ab4 | ||
|
cb00d45e3d | ||
|
2b2b1bba63 | ||
|
031420bc78 | ||
|
387faa13d5 | ||
|
6979d43650 | ||
|
af8bb132d0 | ||
|
40964187bb | ||
|
fe3d951f26 | ||
|
6e365b37db | ||
|
5e55a17b2a | ||
|
ffecfbe075 | ||
|
644e52b153 | ||
|
b396e0eee3 | ||
|
8b6a79ad9e | ||
|
696900228b | ||
|
e5d083fe79 | ||
|
d4b3fb942f | ||
|
527d602a9f | ||
|
513f252a0c | ||
|
0fe704c6f9 | ||
|
5a2fc20b20 | ||
|
2a45ad147c | ||
|
fa3f2237eb | ||
|
6aa356e69f | ||
|
a04360f625 | ||
|
48c9e66ae5 | ||
|
05ca555b6e | ||
|
2bb75b6aa9 | ||
|
869d400617 | ||
|
6ae7a92e03 | ||
|
a67f57c0e0 | ||
|
b04cd4edee | ||
|
cd1b6e6976 | ||
|
1fa5e220a1 | ||
|
b21b7f0721 | ||
|
21ed8d5c79 | ||
|
6ac4e98d4b | ||
|
b0db8ed6c4 | ||
|
6522707b49 | ||
|
9483c456d4 | ||
|
5781ae9d82 | ||
|
4d727708e2 | ||
|
5c1c174db1 | ||
|
cffdd9c86a | ||
|
ebd64ded62 | ||
|
0758d55dea | ||
|
3992119e32 | ||
|
87871e4df9 | ||
|
ef45e9f490 | ||
|
4e5eef129d | ||
|
034b308ddc | ||
|
3aa2927dae | ||
|
c04340c63e | ||
|
f97dca7707 | ||
|
cf58649a99 | ||
|
e65d1d5930 | ||
|
ad06502539 | ||
|
1ffe862810 | ||
|
69d096df17 | ||
|
6d1b325b34 | ||
|
698226634e | ||
|
0108211c0f | ||
|
155ccbc870 | ||
|
f222e47651 | ||
|
4684094b9b | ||
|
8a8d3811b9 | ||
|
309be88ccd | ||
|
4987bbb712 | ||
|
a6676907b4 | ||
|
df9ec9327d | ||
|
030cd8c4c4 | ||
|
6e10d15f2c | ||
|
6eadca330b | ||
|
309ba7d67e | ||
|
106bae4a31 | ||
|
95280fd692 | ||
|
82fffd2c56 | ||
|
ff275ea175 | ||
|
8c2851fbc4 | ||
|
c1d9ce8679 | ||
|
29c154c681 | ||
|
a861b93d7d | ||
|
0280d15d9d | ||
|
c8aa782fef | ||
|
8ff4a08a2c | ||
|
af1113bf9e | ||
|
55f7cf3ca9 | ||
|
c72063280c | ||
|
b06c2b786c | ||
|
c607615e41 | ||
|
566471444f | ||
|
bf82ce24e0 | ||
|
afd78652f2 | ||
|
0f657da5a4 | ||
|
55fa3234fd | ||
|
f094ff2aa1 | ||
|
a13052e24c | ||
|
bc2c73e499 | ||
|
bcb885422a | ||
|
c438e17954 | ||
|
c46e82561e | ||
|
5c0821330f | ||
|
69e0db56b3 | ||
|
e8bf498236 | ||
|
9cf40afaf0 | ||
|
28a15365d6 | ||
|
d49b353c49 | ||
|
8b966a0f15 | ||
|
30e9763888 | ||
|
0f596e278c | ||
|
74ad8b37bb | ||
|
ec6b56f63c | ||
|
1fbbb5a236 | ||
|
725f30c494 | ||
|
347e6191c5 | ||
|
94c8fe1098 | ||
|
cb32b5cd7b | ||
|
ddf04a7eb4 | ||
|
acf099e481 | ||
|
f7ada7351e | ||
|
2a5cf20c9f | ||
|
81259115d1 | ||
|
f20a6cb321 | ||
|
81af3b6f20 | ||
|
235b82b3fc | ||
|
e2317ea35e | ||
|
f5d73b0499 | ||
|
c1239a7337 | ||
|
7e38e7c949 | ||
|
88b5f5b500 | ||
|
983473261b | ||
|
bfab86b70d | ||
|
5b25d5140c | ||
|
904756bbc5 | ||
|
3a6e2c92cf | ||
|
4ade8eae17 | ||
|
41d43acf5f | ||
|
fa71641ea4 | ||
|
fce8d48de6 | ||
|
6d310d6297 | ||
|
f5ce3deb3a | ||
|
767fe87b2e | ||
|
f2877c3a6e | ||
|
adae5dd758 | ||
|
5118d261ab | ||
|
cc15c5c69f | ||
|
ec51a9f6d6 | ||
|
9b2ac6aaca | ||
|
4daf2478aa | ||
|
63a745c7ad | ||
|
47a4984a56 | ||
|
82f12b8ee6 | ||
|
c7b3039a1a | ||
|
ed68c49c16 | ||
|
a6af4892e3 | ||
|
98f87c6548 | ||
|
54d770df8a | ||
|
b82db1edaa | ||
|
87f02cc775 | ||
|
69030ea9a7 | ||
|
956ca816bc | ||
|
343afea713 | ||
|
f54e6fc09f | ||
|
f4ef259ba0 | ||
|
bced117eb4 | ||
|
54b9bfaeef | ||
|
c4f7cfc2a6 | ||
|
4b722517f0 | ||
|
6127fd4c5c | ||
|
6214d510d6 | ||
|
ecbe7beb6c | ||
|
753dab8b3c | ||
|
7a8f8e5472 | ||
|
5d8af5f94c | ||
|
5145c33ed4 | ||
|
8f3ed8ba8e | ||
|
dc4e6c4629 | ||
|
a7cacafe25 | ||
|
d25a245049 | ||
|
14c7187539 | ||
|
24670178dc | ||
|
72fb421f54 | ||
|
ac7e8bcdf4 | ||
|
38983838fd | ||
|
291159e7fc | ||
|
464cf903f4 | ||
|
935f471ccb | ||
|
9fa9ad05b1 | ||
|
0c482960ce | ||
|
c3f8dc8c22 | ||
|
a959f2a51d | ||
|
880f4f61d2 | ||
|
ab1d1ef4e7 | ||
|
89255d0889 | ||
|
14acee9090 | ||
|
8399130f05 | ||
|
1188012279 | ||
|
04a8bde7ac | ||
|
069a32dcdb | ||
|
388144823a | ||
|
c23d84be39 | ||
|
66120025b7 | ||
|
da33653b0a | ||
|
3ea0210c1d | ||
|
98f1e85c87 | ||
|
d2509c619e | ||
|
2bfe5d1573 | ||
|
d7d464570f | ||
|
2e82476cff | ||
|
2f462717aa | ||
|
86e04832a1 | ||
|
96f1a271ef | ||
|
55e3605ca4 | ||
|
0bf55d8e32 | ||
|
2dcad93d9c | ||
|
328a58ac0d | ||
|
7fca0d8da5 | ||
|
413ab2c538 | ||
|
394e0dfe37 | ||
|
a9b6acec28 | ||
|
ad4cbf20de | ||
|
26fd797ac9 | ||
|
35767591d2 | ||
|
3b11854702 | ||
|
895129c997 | ||
|
92ec1ce77f | ||
|
986bbfa831 | ||
|
75c065c83a | ||
|
9c0805c37a | ||
|
bffc2cdf60 | ||
|
a147dee4b6 | ||
|
5423f1c25b | ||
|
5c602bf4d4 | ||
|
5db73c5c5c | ||
|
52fe392a9e | ||
|
5e1c0fb465 | ||
|
37ab37bffc | ||
|
664b7106ca | ||
|
bb28cae671 | ||
|
c2c26c471a | ||
|
2dca2850dc | ||
|
7fc8f6433b | ||
|
f6180fccdc | ||
|
9d01885b58 | ||
|
ace0a5911c | ||
|
21f2d3058a | ||
|
26fd9d7e5f | ||
|
c74ea7282a | ||
|
279481ad54 | ||
|
9e7a32804b | ||
|
a0743d8b7d | ||
|
68000c21a8 | ||
|
e671b30aaf | ||
|
cf1dfdc776 | ||
|
de29480dda | ||
|
2e424fe249 | ||
|
d4ef6f52bb | ||
|
e1e45f3f32 | ||
|
330f4cadda | ||
|
621eef0edc | ||
|
33ce2b7bba | ||
|
81792a5342 | ||
|
5f43971ccf | ||
|
38443a6068 | ||
|
92bb42950e | ||
|
b58edae134 | ||
|
2b9f20a1b5 | ||
|
d5f8199655 | ||
|
d8903de92e | ||
|
1d35965d03 | ||
|
309bf1ad22 | ||
|
0130591a0f | ||
|
cf4ec06750 | ||
|
e8712e6694 | ||
|
ce5966c23d | ||
|
68f6446718 | ||
|
197f336b5f | ||
|
cd375a976e | ||
|
088d5addf2 | ||
|
2377df9dae | ||
|
ad5ba82f50 | ||
|
b6f18cbe81 | ||
|
87a0ba3db3 | ||
|
3212a47720 | ||
|
431536cdbb | ||
|
9a60578088 | ||
|
8dcd159bd6 | ||
|
2f87463170 | ||
|
9f56bf0ab9 | ||
|
603b056512 | ||
|
ce04e9e07a | ||
|
c54a188154 | ||
|
c77ba46d60 | ||
|
cc3149c520 | ||
|
512f672e9e | ||
|
b117985f66 | ||
|
b92a2b2a56 | ||
|
a6f39bc74f | ||
|
daad02504f | ||
|
8a6889529c | ||
|
b34cbd881a | ||
|
f6eaaab725 | ||
|
2a2c74e081 | ||
|
c653e0f261 | ||
|
f0dd1d715a | ||
|
d98a2a5f79 | ||
|
275717b8e3 | ||
|
51dc197b33 | ||
|
a42c95a781 | ||
|
8b5b6d0821 | ||
|
72dcde9e0f | ||
|
a08a687951 | ||
|
7ff68223ab | ||
|
c76c1d6bf8 | ||
|
0167407370 | ||
|
b49b10141e | ||
|
cb0e37e76e | ||
|
237d1c1bf4 |
20
.dockerignore
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
.vscode/
|
||||||
|
cli/
|
||||||
|
design/
|
||||||
|
docker/
|
||||||
|
docs/
|
||||||
|
fastlane/
|
||||||
|
machine-learning/
|
||||||
|
misc/
|
||||||
|
mobile/
|
||||||
|
|
||||||
|
server/node_modules
|
||||||
|
server/coverage/
|
||||||
|
server/.reverse-geocoding-dump/
|
||||||
|
server/upload/
|
||||||
|
server/dist/
|
||||||
|
|
||||||
|
web/node_modules/
|
||||||
|
web/coverage/
|
||||||
|
web/.svelte-kit
|
||||||
|
web/build/
|
4
.gitattributes
vendored
|
@ -5,6 +5,8 @@ mobile/openapi/**/*.dart linguist-generated=true
|
||||||
mobile/openapi/.openapi-generator/FILES -diff -merge
|
mobile/openapi/.openapi-generator/FILES -diff -merge
|
||||||
mobile/openapi/.openapi-generator/FILES linguist-generated=true
|
mobile/openapi/.openapi-generator/FILES linguist-generated=true
|
||||||
|
|
||||||
|
mobile/lib/**/*.g.dart -diff -merge
|
||||||
|
mobile/lib/**/*.g.dart linguist-generated=true
|
||||||
|
|
||||||
cli/src/api/open-api/**/*.md -diff -merge
|
cli/src/api/open-api/**/*.md -diff -merge
|
||||||
cli/src/api/open-api/**/*.md linguist-generated=true
|
cli/src/api/open-api/**/*.md linguist-generated=true
|
||||||
|
@ -15,3 +17,5 @@ web/src/api/open-api/**/*.md -diff -merge
|
||||||
web/src/api/open-api/**/*.md linguist-generated=true
|
web/src/api/open-api/**/*.md linguist-generated=true
|
||||||
web/src/api/open-api/**/*.ts -diff -merge
|
web/src/api/open-api/**/*.ts -diff -merge
|
||||||
web/src/api/open-api/**/*.ts linguist-generated=true
|
web/src/api/open-api/**/*.ts linguist-generated=true
|
||||||
|
|
||||||
|
*.sh text eol=lf
|
||||||
|
|
2
.github/FUNDING.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
github: alextran1502
|
github: immich-app
|
||||||
liberapay: alex.tran1502
|
liberapay: alex.tran1502
|
||||||
custom: https://www.buymeacoffee.com/altran1502
|
custom: https://www.buymeacoffee.com/altran1502
|
||||||
|
|
4
.github/workflows/build-mobile.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
name: Build and sign Android
|
name: Build and sign Android
|
||||||
# Skip when PR from a fork
|
# Skip when PR from a fork
|
||||||
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
|
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
|
||||||
runs-on: macos-12
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Determine ref
|
- name: Determine ref
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.get-ref.outputs.ref }}
|
ref: ${{ steps.get-ref.outputs.ref }}
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: "12.x"
|
java-version: "12.x"
|
||||||
|
|
3
.github/workflows/cache-cleanup.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Clean up actions cache on PR close
|
name: Cache Cleanup
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
|
@ -10,6 +10,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cleanup:
|
cleanup:
|
||||||
|
name: Cleanup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
|
23
.github/workflows/cli-release.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: CLI Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./cli
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# Setup .npmrc file to publish to npm
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "20.x"
|
||||||
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
2
.github/workflows/dispatch_sdk_update.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ !github.event.pull_request.head.repo.fork }}
|
if: ${{ !github.event.pull_request.head.repo.fork }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_TOKEN }}
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|
16
.github/workflows/docker-cleanup.yml
vendored
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# This workflow will not trigger runs on forked repos.
|
# This workflow will not trigger runs on forked repos.
|
||||||
|
|
||||||
name: Cleanup Old Docker Images
|
name: Docker Cleanup
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -29,16 +29,13 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- primary-name: "immich-server"
|
- primary-name: "immich-server"
|
||||||
- primary-name: "immich-machine-learning"
|
- primary-name: "immich-machine-learning"
|
||||||
- primary-name: "immich-web"
|
|
||||||
- primary-name: "immich-proxy"
|
|
||||||
env:
|
env:
|
||||||
# Requires a personal access token with the OAuth scope delete:packages
|
# Requires a personal access token with the OAuth scope delete:packages
|
||||||
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }}
|
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Clean temporary images
|
||||||
name: Clean temporary images
|
|
||||||
if: "${{ env.TOKEN != '' }}"
|
if: "${{ env.TOKEN != '' }}"
|
||||||
uses: stumpylog/image-cleaner-action/ephemeral@v0.3.0
|
uses: stumpylog/image-cleaner-action/ephemeral@v0.4.0
|
||||||
with:
|
with:
|
||||||
token: "${{ env.TOKEN }}"
|
token: "${{ env.TOKEN }}"
|
||||||
owner: "immich-app"
|
owner: "immich-app"
|
||||||
|
@ -60,17 +57,14 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- primary-name: "immich-server"
|
- primary-name: "immich-server"
|
||||||
- primary-name: "immich-machine-learning"
|
- primary-name: "immich-machine-learning"
|
||||||
- primary-name: "immich-web"
|
|
||||||
- primary-name: "immich-proxy"
|
|
||||||
- primary-name: "immich-build-cache"
|
- primary-name: "immich-build-cache"
|
||||||
env:
|
env:
|
||||||
# Requires a personal access token with the OAuth scope delete:packages
|
# Requires a personal access token with the OAuth scope delete:packages
|
||||||
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }}
|
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Clean untagged images
|
||||||
name: Clean untagged images
|
|
||||||
if: "${{ env.TOKEN != '' }}"
|
if: "${{ env.TOKEN != '' }}"
|
||||||
uses: stumpylog/image-cleaner-action/untagged@v0.3.0
|
uses: stumpylog/image-cleaner-action/untagged@v0.4.0
|
||||||
with:
|
with:
|
||||||
token: "${{ env.TOKEN }}"
|
token: "${{ env.TOKEN }}"
|
||||||
owner: "immich-app"
|
owner: "immich-app"
|
||||||
|
|
99
.github/workflows/docker.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Docker Images
|
name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -18,106 +18,22 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
|
name: Build and Push
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
# Prevent a failure in one image from stopping the other builds
|
# Prevent a failure in one image from stopping the other builds
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- context: "web"
|
|
||||||
image: "immich-web"
|
|
||||||
platforms: "linux/amd64,linux/arm64"
|
|
||||||
- context: "machine-learning"
|
- context: "machine-learning"
|
||||||
|
file: "machine-learning/Dockerfile"
|
||||||
image: "immich-machine-learning"
|
image: "immich-machine-learning"
|
||||||
platforms: "linux/amd64,linux/arm64"
|
platforms: "linux/amd64,linux/arm64"
|
||||||
- context: "nginx"
|
- context: "."
|
||||||
image: "immich-proxy"
|
file: "server/Dockerfile"
|
||||||
platforms: "linux/amd64,linux/arm64"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3.0.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3.0.0
|
|
||||||
# Workaround to fix error:
|
|
||||||
# failed to push: failed to copy: io: read/write on closed pipe
|
|
||||||
# See https://github.com/docker/build-push-action/issues/761
|
|
||||||
with:
|
|
||||||
driver-opts: |
|
|
||||||
image=moby/buildkit:v0.10.6
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
# Only push to Docker Hub when making a release
|
|
||||||
if: ${{ github.event_name == 'release' }}
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
# Skip when PR from a fork
|
|
||||||
if: ${{ !github.event.pull_request.head.repo.fork }}
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Generate docker image tags
|
|
||||||
id: metadata
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
flavor: |
|
|
||||||
# Disable latest tag
|
|
||||||
latest=false
|
|
||||||
images: |
|
|
||||||
name=ghcr.io/${{ github.repository_owner }}/${{matrix.image}}
|
|
||||||
name=altran1502/${{matrix.image}},enable=${{ github.event_name == 'release' }}
|
|
||||||
tags: |
|
|
||||||
# Tag with branch name
|
|
||||||
type=ref,event=branch
|
|
||||||
# Tag with pr-number
|
|
||||||
type=ref,event=pr
|
|
||||||
# Tag with git tag on release
|
|
||||||
type=ref,event=tag
|
|
||||||
type=raw,value=release,enable=${{ github.event_name == 'release' }}
|
|
||||||
|
|
||||||
- name: Determine build cache output
|
|
||||||
id: cache-target
|
|
||||||
run: |
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
|
||||||
# Essentially just ignore the cache output (PR can't write to registry cache)
|
|
||||||
echo "cache-to=type=local,dest=/tmp/discard,ignore-error=true" >> $GITHUB_OUTPUT
|
|
||||||
else
|
|
||||||
echo "cache-to=type=registry,mode=max,ref=ghcr.io/${{ github.repository_owner }}/immich-build-cache:${{ matrix.image }}" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build and push image
|
|
||||||
uses: docker/build-push-action@v5.0.0
|
|
||||||
with:
|
|
||||||
context: ${{ matrix.context }}
|
|
||||||
platforms: ${{ matrix.platforms }}
|
|
||||||
# Skip pushing when PR from a fork
|
|
||||||
push: ${{ !github.event.pull_request.head.repo.fork }}
|
|
||||||
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/immich-build-cache:${{matrix.image}}
|
|
||||||
cache-to: ${{ steps.cache-target.outputs.cache-to }}
|
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
|
||||||
labels: ${{ steps.metadata.outputs.labels }}
|
|
||||||
|
|
||||||
build_and_push_server_arm_64:
|
|
||||||
runs-on: self-hosted
|
|
||||||
strategy:
|
|
||||||
# Prevent a failure in one image from stopping the other builds
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- context: "server"
|
|
||||||
image: "immich-server"
|
image: "immich-server"
|
||||||
platforms: "linux/arm64,linux/amd64"
|
platforms: "linux/arm64,linux/amd64"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -181,9 +97,10 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v5.0.0
|
uses: docker/build-push-action@v5.1.0
|
||||||
with:
|
with:
|
||||||
context: ${{ matrix.context }}
|
context: ${{ matrix.context }}
|
||||||
|
file: ${{ matrix.file }}
|
||||||
platforms: ${{ matrix.platforms }}
|
platforms: ${{ matrix.platforms }}
|
||||||
# Skip pushing when PR from a fork
|
# Skip pushing when PR from a fork
|
||||||
push: ${{ !github.event.pull_request.head.repo.fork }}
|
push: ${{ !github.event.pull_request.head.repo.fork }}
|
||||||
|
|
5
.github/workflows/static_analysis.yml
vendored
|
@ -32,3 +32,8 @@ jobs:
|
||||||
- name: Run dart analyze
|
- name: Run dart analyze
|
||||||
run: dart analyze --fatal-infos
|
run: dart analyze --fatal-infos
|
||||||
working-directory: ./mobile
|
working-directory: ./mobile
|
||||||
|
|
||||||
|
# Enable after riverpod generator migration is completed
|
||||||
|
# - name: Run dart custom lint
|
||||||
|
# run: dart run custom_lint
|
||||||
|
# working-directory: ./mobile
|
||||||
|
|
58
.github/workflows/test.yml
vendored
|
@ -11,7 +11,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-tests:
|
e2e-tests:
|
||||||
name: Run end-to-end test suites
|
name: Server (e2e)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
run: docker compose -f ./docker/docker-compose.test.yml up --renew-anon-volumes --abort-on-container-exit --exit-code-from immich-server --remove-orphans --build
|
run: docker compose -f ./docker/docker-compose.test.yml up --renew-anon-volumes --abort-on-container-exit --exit-code-from immich-server --remove-orphans --build
|
||||||
|
|
||||||
doc-tests:
|
doc-tests:
|
||||||
name: Run documentation checks
|
name: Docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -45,8 +45,12 @@ jobs:
|
||||||
run: npm run check
|
run: npm run check
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
|
- name: Run build
|
||||||
|
run: npm run build
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
server-unit-tests:
|
server-unit-tests:
|
||||||
name: Run server unit test suites and checks
|
name: Server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -76,7 +80,7 @@ jobs:
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
cli-unit-tests:
|
cli-unit-tests:
|
||||||
name: Run cli test suites
|
name: CLI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -97,12 +101,16 @@ jobs:
|
||||||
run: npm run format
|
run: npm run format
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
|
- name: Run tsc
|
||||||
|
run: npm run check
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
- name: Run unit tests & coverage
|
- name: Run unit tests & coverage
|
||||||
run: npm run test:cov
|
run: npm run test:cov
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
|
|
||||||
web-unit-tests:
|
web-unit-tests:
|
||||||
name: Run web unit test suites and checks
|
name: Web
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -136,7 +144,7 @@ jobs:
|
||||||
# if: ${{ !cancelled() }}
|
# if: ${{ !cancelled() }}
|
||||||
|
|
||||||
mobile-unit-tests:
|
mobile-unit-tests:
|
||||||
name: Run mobile unit tests
|
name: Mobile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -150,7 +158,7 @@ jobs:
|
||||||
run: flutter test -j 1
|
run: flutter test -j 1
|
||||||
|
|
||||||
ml-unit-tests:
|
ml-unit-tests:
|
||||||
name: Run ML unit tests and checks
|
name: Machine Learning
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -166,22 +174,21 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install --with dev
|
poetry install --with dev
|
||||||
poetry run pip install --no-deps -r requirements.txt
|
|
||||||
- name: Lint with ruff
|
- name: Lint with ruff
|
||||||
run: |
|
run: |
|
||||||
poetry run ruff check --format=github app
|
poetry run ruff check --format=github app export
|
||||||
- name: Check black formatting
|
- name: Check black formatting
|
||||||
run: |
|
run: |
|
||||||
poetry run black --check app
|
poetry run black --check app export
|
||||||
- name: Run mypy type checking
|
- name: Run mypy type checking
|
||||||
run: |
|
run: |
|
||||||
poetry run mypy --install-types --non-interactive app/
|
poetry run mypy --install-types --non-interactive --strict app/ export/
|
||||||
- name: Run tests and coverage
|
- name: Run tests and coverage
|
||||||
run: |
|
run: |
|
||||||
poetry run pytest --cov app
|
poetry run pytest --cov app
|
||||||
|
|
||||||
generated-api-up-to-date:
|
generated-api-up-to-date:
|
||||||
name: Check generated files are up-to-date
|
name: OpenAPI Clients
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -202,11 +209,11 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
generated-typeorm-migrations-up-to-date:
|
generated-typeorm-migrations-up-to-date:
|
||||||
name: Check generated TypeORM migrations are up-to-date
|
name: TypeORM Checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres@sha256:6dfee32131933ab4ca25a00360c3f427fdc134de56f9a90c6c9a4956b48aea85
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
|
@ -229,7 +236,7 @@ jobs:
|
||||||
- name: Install server dependencies
|
- name: Install server dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build the
|
- name: Build the app
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run existing migrations
|
- name: Run existing migrations
|
||||||
|
@ -245,13 +252,30 @@ jobs:
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
server/src/infra/migrations/
|
server/src/infra/migrations/
|
||||||
- name: Verify files have not changed
|
- name: Verify migration files have not changed
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "ERROR: Generated files not up to date!"
|
echo "ERROR: Generated migration files not up to date!"
|
||||||
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
|
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
- name: Run SQL generation
|
||||||
|
run: npm run sql:generate
|
||||||
|
|
||||||
|
- name: Find file changes
|
||||||
|
uses: tj-actions/verify-changed-files@v13.1
|
||||||
|
id: verify-changed-sql-files
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
server/src/infra/sql
|
||||||
|
|
||||||
|
- name: Verify SQL files have not changed
|
||||||
|
if: steps.verify-changed-sql-files.outputs.files_changed == 'true'
|
||||||
|
run: |
|
||||||
|
echo "ERROR: Generated SQL files not up to date!"
|
||||||
|
echo "Changed files: ${{ steps.verify-changed-sql-files.outputs.changed_files }}"
|
||||||
|
exit 1
|
||||||
|
|
||||||
# mobile-integration-tests:
|
# mobile-integration-tests:
|
||||||
# name: Run mobile end-to-end integration tests
|
# name: Run mobile end-to-end integration tests
|
||||||
# runs-on: macos-latest
|
# runs-on: macos-latest
|
||||||
|
|
25
Makefile
|
@ -1,38 +1,35 @@
|
||||||
dev:
|
dev:
|
||||||
docker-compose -f ./docker/docker-compose.dev.yml up --remove-orphans
|
docker compose -f ./docker/docker-compose.dev.yml up --remove-orphans || make dev-down
|
||||||
|
|
||||||
dev-new:
|
|
||||||
docker compose -f ./docker/docker-compose.dev.yml up --remove-orphans
|
|
||||||
|
|
||||||
dev-down:
|
dev-down:
|
||||||
docker compose -f ./docker/docker-compose.dev.yml down --remove-orphans
|
docker compose -f ./docker/docker-compose.dev.yml down --remove-orphans
|
||||||
|
|
||||||
dev-new-update:
|
dev-update:
|
||||||
docker compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans
|
docker compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans
|
||||||
|
|
||||||
dev-update:
|
|
||||||
docker-compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans
|
|
||||||
|
|
||||||
dev-scale:
|
dev-scale:
|
||||||
docker-compose -f ./docker/docker-compose.dev.yml up --build -V --scale immich-server=3 --remove-orphans
|
docker compose -f ./docker/docker-compose.dev.yml up --build -V --scale immich-server=3 --remove-orphans
|
||||||
|
|
||||||
stage:
|
stage:
|
||||||
docker-compose -f ./docker/docker-compose.staging.yml up --build -V --remove-orphans
|
docker compose -f ./docker/docker-compose.staging.yml up --build -V --remove-orphans
|
||||||
|
|
||||||
pull-stage:
|
pull-stage:
|
||||||
docker-compose -f ./docker/docker-compose.staging.yml pull
|
docker compose -f ./docker/docker-compose.staging.yml pull
|
||||||
|
|
||||||
test-e2e:
|
test-e2e:
|
||||||
docker compose -f ./docker/docker-compose.test.yml up --renew-anon-volumes --abort-on-container-exit --exit-code-from immich-server --remove-orphans --build
|
docker compose -f ./docker/docker-compose.test.yml up --renew-anon-volumes --abort-on-container-exit --exit-code-from immich-server --remove-orphans --build
|
||||||
|
|
||||||
prod:
|
prod:
|
||||||
docker-compose -f ./docker/docker-compose.prod.yml up --build -V --remove-orphans
|
docker compose -f ./docker/docker-compose.prod.yml up --build -V --remove-orphans
|
||||||
|
|
||||||
prod-scale:
|
prod-scale:
|
||||||
docker-compose -f ./docker/docker-compose.prod.yml up --build -V --scale immich-server=3 --scale immich-microservices=3 --remove-orphans
|
docker compose -f ./docker/docker-compose.prod.yml up --build -V --scale immich-server=3 --scale immich-microservices=3 --remove-orphans
|
||||||
|
|
||||||
api:
|
api:
|
||||||
cd ./server && npm run api:generate
|
npm --prefix server run api:generate
|
||||||
|
|
||||||
|
sql:
|
||||||
|
npm --prefix server run sql:generate
|
||||||
|
|
||||||
attach-server:
|
attach-server:
|
||||||
docker exec -it docker_immich-server_1 sh
|
docker exec -it docker_immich-server_1 sh
|
||||||
|
|
27
README.md
|
@ -2,7 +2,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-green.svg?color=3F51B5&style=for-the-badge&label=License&logoColor=000000&labelColor=ececec" alt="License: MIT"></a>
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-green.svg?color=3F51B5&style=for-the-badge&label=License&logoColor=000000&labelColor=ececec" alt="License: MIT"></a>
|
||||||
<a href="https://discord.gg/D8JsnBEuKb">
|
<a href="https://discord.gg/D8JsnBEuKb">
|
||||||
<img src="https://img.shields.io/discord/979116623879368755.svg?label=Discord&logo=Discord&style=for-the-badge&logoColor=000000&labelColor=ececec" atl="Discord"/>
|
<img src="https://img.shields.io/discord/979116623879368755.svg?label=Discord&logo=Discord&style=for-the-badge&logoColor=000000&labelColor=ececec" alt="Discord"/>
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -18,14 +18,16 @@
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README_zh_CN.md">中文</a>
|
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
@ -66,7 +68,7 @@ password: demo
|
||||||
Spec: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
Spec: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
||||||
```
|
```
|
||||||
|
|
||||||
# Features
|
## Features
|
||||||
|
|
||||||
| Features | Mobile | Web |
|
| Features | Mobile | Web |
|
||||||
| -------------------------------------------- | ------ | --- |
|
| -------------------------------------------- | ------ | --- |
|
||||||
|
@ -85,7 +87,7 @@ Spec: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
||||||
| Virtual scroll | Yes | Yes |
|
| Virtual scroll | Yes | Yes |
|
||||||
| OAuth support | Yes | Yes |
|
| OAuth support | Yes | Yes |
|
||||||
| API Keys | N/A | Yes |
|
| API Keys | N/A | Yes |
|
||||||
| LivePhoto backup and playback | iOS | Yes |
|
| LivePhoto/MotionPhoto backup and playback | Yes | Yes |
|
||||||
| User-defined storage structure | Yes | Yes |
|
| User-defined storage structure | Yes | Yes |
|
||||||
| Public Sharing | No | Yes |
|
| Public Sharing | No | Yes |
|
||||||
| Archive and Favorites | Yes | Yes |
|
| Archive and Favorites | Yes | Yes |
|
||||||
|
@ -95,8 +97,9 @@ Spec: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
||||||
| Memories (x years ago) | Yes | Yes |
|
| Memories (x years ago) | Yes | Yes |
|
||||||
| Offline support | Yes | No |
|
| Offline support | Yes | No |
|
||||||
| Read-only gallery | Yes | Yes |
|
| Read-only gallery | Yes | Yes |
|
||||||
|
| Stacked Photos | Yes | Yes |
|
||||||
|
|
||||||
# Support the project
|
## Support the project
|
||||||
|
|
||||||
I've committed to this project, and I will not stop. I will keep updating the docs, adding new features, and fixing bugs. But I can't do it alone. So I need your help to give me additional motivation to keep going.
|
I've committed to this project, and I will not stop. I will keep updating the docs, adding new features, and fixing bugs. But I can't do it alone. So I need your help to give me additional motivation to keep going.
|
||||||
|
|
||||||
|
@ -104,10 +107,16 @@ As our hosts in the [selfhosted.show - In the episode 'The-organization-must-not
|
||||||
|
|
||||||
If you feel like this is the right cause and the app is something you are seeing yourself using for a long time, please consider supporting the project with the option below.
|
If you feel like this is the right cause and the app is something you are seeing yourself using for a long time, please consider supporting the project with the option below.
|
||||||
|
|
||||||
## Donation
|
### Donation
|
||||||
|
|
||||||
- [Monthly donation](https://github.com/sponsors/alextran1502) via GitHub Sponsors
|
- [Monthly donation](https://github.com/sponsors/alextran1502) via GitHub Sponsors
|
||||||
- [One-time donation](https://github.com/sponsors/alextran1502?frequency=one-time&sponsor=alextran1502) via GitHub Sponsors
|
- [One-time donation](https://github.com/sponsors/alextran1502?frequency=one-time&sponsor=alextran1502) via GitHub Sponsors
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
<a href="https://github.com/alextran1502/immich/graphs/contributors">
|
||||||
|
<img src="https://contrib.rocks/image?repo=immich-app/immich" width="100%"/>
|
||||||
|
</a>
|
||||||
|
|
|
@ -19,13 +19,15 @@
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README.md">English</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_zh_CN.md">中文</a>
|
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Español</a>
|
<a href="README_ca_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Avís legal
|
## Avís legal
|
||||||
|
@ -109,4 +111,4 @@ Si creieu que aquesta és una causa justa i l'aplicació és alguna cosa que us
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
122
README_de_DE.md
Normal file
|
@ -0,0 +1,122 @@
|
||||||
|
<p align="center">
|
||||||
|
<br/>
|
||||||
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-green.svg?color=3F51B5&style=for-the-badge&label=License&logoColor=000000&labelColor=ececec" alt="Lizenz: MIT"></a>
|
||||||
|
<a href="https://discord.gg/D8JsnBEuKb">
|
||||||
|
<img src="https://img.shields.io/discord/979116623879368755.svg?label=Discord&logo=Discord&style=for-the-badge&logoColor=000000&labelColor=ececec" alt="Discord"/>
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="design/immich-logo.svg" width="150" title="Login mit eigener URL">
|
||||||
|
</p>
|
||||||
|
<h3 align="center">Immich - Hoch performante, selbst gehostete Backup-Lösung für Fotos und Videos</h3>
|
||||||
|
<br/>
|
||||||
|
<a href="https://immich.app">
|
||||||
|
<img src="design/immich-screenshots.png" title="Haupt-Screenshot">
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<p align="center">
|
||||||
|
<a href="README.md">English</a>
|
||||||
|
<a href="README_ca_ES.md">Català</a>
|
||||||
|
<a href="README_es_ES.md">Español</a>
|
||||||
|
<a href="README_fr_FR.md">Français</a>
|
||||||
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Warnung
|
||||||
|
|
||||||
|
- ⚠️ Das Projekt befindet sich in **sehr aktiver** Entwicklung.
|
||||||
|
- ⚠️ Erwarte Fehler und Änderungen mit Breaking-Changes.
|
||||||
|
- ⚠️ **Nutze die App auf keinen Fall als einziges Speichermedium für deine Fotos und Videos.**
|
||||||
|
- ⚠️ Befolge immer die [3-2-1](https://www.backblaze.com/blog/the-3-2-1-backup-strategy/) Backup-Regel für deine wertvollen Fotos und Videos!
|
||||||
|
|
||||||
|
## Inhalt
|
||||||
|
|
||||||
|
- [Offizielle Dokumentation](https://immich.app/docs)
|
||||||
|
- [Roadmap](https://github.com/orgs/immich-app/projects/1)
|
||||||
|
- [Demo](#demo)
|
||||||
|
- [Funktionen](#funktionen)
|
||||||
|
- [Einführung](https://immich.app/docs/overview/introduction)
|
||||||
|
- [Installation](https://immich.app/docs/install/requirements)
|
||||||
|
- [Beitragsrichtlinien](https://immich.app/docs/overview/support-the-project)
|
||||||
|
- [Unterstütze das Projekt](#unterstütze-das-projekt)
|
||||||
|
|
||||||
|
## Dokumentation
|
||||||
|
|
||||||
|
Die Hauptdokumentation, inklusive Installationsanleitungen, ist unter https://immich.app zu finden.
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
Die Web-Demo kannst Du unter https://demo.immich.app finden.
|
||||||
|
|
||||||
|
Für die Handy-App kannst Du `https://demo.immich.app/api` als `Server Endpoint URL` angeben.
|
||||||
|
|
||||||
|
```bash title="Demo Credential"
|
||||||
|
Die Anmeldedaten
|
||||||
|
email: demo@immich.app
|
||||||
|
passwort: demo
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
Spec: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
||||||
|
```
|
||||||
|
|
||||||
|
## Funktionen
|
||||||
|
|
||||||
|
| Funktionen | Mobil | Web |
|
||||||
|
| ---------------------------------------------------- | ------ | ----- |
|
||||||
|
| Fotos & Videos hochladen und ansehen | Ja | Ja |
|
||||||
|
| Automatisches Backup wenn die App geöffnet ist | Ja | n. a. |
|
||||||
|
| Selektive Auswahl von Alben zum Sichern | Ja | n. a. |
|
||||||
|
| Fotos und Videos auf das Gerät herunterladen | Ja | Ja |
|
||||||
|
| Unterstützt mehrere Benutzer | Ja | Ja |
|
||||||
|
| Album und geteilte Alben | Ja | Ja |
|
||||||
|
| Scrollleiste | Ja | Ja |
|
||||||
|
| Unterstützt RAW Formate | Ja | Ja |
|
||||||
|
| Metadaten anzeigen (EXIF, Karte) | Ja | Ja |
|
||||||
|
| Suchen nach Metadaten, Objekten, Gesichtern und CLIP | Ja | Ja |
|
||||||
|
| Administrative Funktionen (Benutzerverwaltung) | Nein | Ja |
|
||||||
|
| Backup im Hintergrund | Ja | n. a. |
|
||||||
|
| Virtuelles Scrollen | Ja | Ja |
|
||||||
|
| OAuth Unterstützung | Ja | Ja |
|
||||||
|
| API-Schlüssel | n. a. | Ja |
|
||||||
|
| LivePhoto/MotionPhoto Backup und Wiedergabe | Ja | Ja |
|
||||||
|
| Benutzerdefinierte Speicherstruktur | Ja | Ja |
|
||||||
|
| Öffentliches Teilen | Nein | Ja |
|
||||||
|
| Archive und Favoriten | Ja | Ja |
|
||||||
|
| Globale Karte | Ja | Ja |
|
||||||
|
| Teilen mit Partner | Ja | Ja |
|
||||||
|
| Gesichtserkennung und Gruppierung | Ja | Ja |
|
||||||
|
| Rückblicke (heute vor x Jahren) | Ja | Ja |
|
||||||
|
| Offline Unterstützung | Ja | Nein |
|
||||||
|
| Schreibgeschützte Gallerie | Ja | Ja |
|
||||||
|
| Gestapelte Bilder | Ja | Ja |
|
||||||
|
|
||||||
|
## Unterstütze das Projekt
|
||||||
|
|
||||||
|
Ich habe mich diesem Projekt verpflichtet und werde nicht aufgeben. Ich werde die Dokumentation weiter aktualisieren, neue Funktionen hinzufügen und Fehler beheben. Allerdings kann ich das nicht alleine schaffen. Daher brauche ich Eure Unterstützung, um mir zusätzliche Motivation zu geben, weiterzumachen.
|
||||||
|
|
||||||
|
Wie unsere Gastgeber in der [selfhosted.show - In der Episode 'The-organization-must-not-be-name is a Hostile Actor'](https://selfhosted.show/79?t=1418) gesagt haben, ist dies ein riesiges Unterfangen, welchem das Team und ich uns annehmen. In Zukunft würde ich liebend gerne Vollzeit an dem Projekt arbeiten und bitte daher um Eure Unterstützung.
|
||||||
|
|
||||||
|
Wenn Du denkst, dass dies die richtige Sache ist und dich selbst die App für eine längere Zeit nutzen siehst, dann denke bitte darüber nach, das Projekt mit einer der unten aufgelisteten Optionen zu unterstützen.
|
||||||
|
|
||||||
|
### Spenden
|
||||||
|
|
||||||
|
- [Monatliche Spende](https://github.com/sponsors/immich-app) via GitHub Sponsors
|
||||||
|
- [Einmalige Spende](https://github.com/sponsors/immich-app?frequency=one-time&sponsor=immich-app) via GitHub Sponsors
|
||||||
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
||||||
|
## Mitwirkende
|
||||||
|
<a href="https://github.com/alextran1502/immich/graphs/contributors">
|
||||||
|
<img src="https://contrib.rocks/image?repo=immich-app/immich" width="100%"/>
|
||||||
|
</a>
|
|
@ -19,12 +19,15 @@
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README.md">English</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_zh_CN.md">中文</a>
|
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Descargo de responsabilidad
|
## Descargo de responsabilidad
|
||||||
|
@ -109,3 +112,4 @@ Si consideras que esta es una causa justa y la aplicación es algo que te gustar
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
|
@ -18,14 +18,16 @@
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README_zh_CN.md">中文</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Clause de non-responsabilité
|
## Clause de non-responsabilité
|
||||||
|
@ -111,3 +113,4 @@ Si vous estimez que c'est pour la bonne cause et que vous prévoyez d'utiliser l
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
|
@ -19,13 +19,15 @@
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README.md">English</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_zh_CN.md">中文</a>
|
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Declino di responsabilità
|
## Declino di responsabilità
|
||||||
|
@ -111,3 +113,4 @@ Se pensi che Immich sia una buona causa e che l'app sia qualcosa che useresti ne
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
|
@ -18,13 +18,16 @@
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README_zh_CN.md">中文</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## 免責事項
|
## 免責事項
|
||||||
|
|
117
README_ko_KR.md
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
<p align="center">
|
||||||
|
<br/>
|
||||||
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-green.svg?color=3F51B5&style=for-the-badge&label=License&logoColor=000000&labelColor=ececec" alt="License: MIT"></a>
|
||||||
|
<a href="https://discord.gg/D8JsnBEuKb">
|
||||||
|
<img src="https://img.shields.io/discord/979116623879368755.svg?label=Discord&logo=Discord&style=for-the-badge&logoColor=000000&labelColor=ececec" alt="Discord"/>
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="design/immich-logo.svg" width="150" title="Login With Custom URL">
|
||||||
|
</p>
|
||||||
|
<h3 align="center">Immich - 고성능 자체 호스팅 사진 및 동영상 백업 솔루션</h3>
|
||||||
|
<br/>
|
||||||
|
<a href="https://immich.app">
|
||||||
|
<img src="design/immich-screenshots.png" title="Main Screenshot">
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<p align="center">
|
||||||
|
<a href="README.md">English</a>
|
||||||
|
<a href="README_ca_ES.md">Català</a>
|
||||||
|
<a href="README_es_ES.md">Español</a>
|
||||||
|
<a href="README_fr_FR.md">Français</a>
|
||||||
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## 주의 사항
|
||||||
|
|
||||||
|
- ⚠️ 이 프로젝트는 **매우 활발히** 개발 중입니다.
|
||||||
|
- ⚠️ 버그 및 잦은 변경 사항이 있을 수 있습니다.
|
||||||
|
- ⚠️ **사진과 동영상을 저장하는 유일한 방법으로 사용하지 마세요.**
|
||||||
|
- ⚠️ 중요한 사진과 동영상을 위해 항상 [3-2-1](https://www.backblaze.com/blog/the-3-2-1-backup-strategy/) 백업 계획을 따르세요!
|
||||||
|
|
||||||
|
## 목차
|
||||||
|
|
||||||
|
- [공식 문서](https://immich.app/docs)
|
||||||
|
- [로드맵](https://github.com/orgs/immich-app/projects/1)
|
||||||
|
- [데모](#demo)
|
||||||
|
- [기능](#features)
|
||||||
|
- [소개](https://immich.app/docs/overview/introduction)
|
||||||
|
- [설치](https://immich.app/docs/install/requirements)
|
||||||
|
- [기여 가이드](https://immich.app/docs/overview/support-the-project)
|
||||||
|
- [프로젝트 지원](#support-the-project)
|
||||||
|
|
||||||
|
## 문서
|
||||||
|
|
||||||
|
설치 가이드를 포함한 주요 문서는 https://immich.app 에서 확인할 수 있습니다.
|
||||||
|
|
||||||
|
## 데모
|
||||||
|
|
||||||
|
https://demo.immich.app 에서 웹 데모를 체험할 수 있습니다.
|
||||||
|
|
||||||
|
모바일 앱의 경우 `서버 엔드포인트 URL`에 `https://demo.immich.app`를 입력합니다.
|
||||||
|
|
||||||
|
```bash title="Demo Credential"
|
||||||
|
자격 증명
|
||||||
|
email: demo@immich.app
|
||||||
|
password: demo
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
사양: Free-tier Oracle VM - Amsterdam - 2.4Ghz quad-core ARM64 CPU, 24GB RAM
|
||||||
|
```
|
||||||
|
|
||||||
|
## 기능
|
||||||
|
|
||||||
|
| 기능 | 모바일 | 웹 |
|
||||||
|
| ------------------------------------ | ----- | ----- |
|
||||||
|
| 사진, 동영상 업로드 및 보기 | 예 | 예 |
|
||||||
|
| 앱을 열 때 자동으로 백업 | 예 | N/A |
|
||||||
|
| 백업용 앨범 선택 | 예 | N/A |
|
||||||
|
| 로컬 기기로 사진 및 동영상 다운로드 | 예 | 예 |
|
||||||
|
| 다른 사용자 추가 | 예 | 예 |
|
||||||
|
| 앨범 및 공유 앨범 | 예 | 예 |
|
||||||
|
| 스와이프/드래그 가능한 스크롤 바 | 예 | 예 |
|
||||||
|
| RAW 포맷 지원 | 예 | 예 |
|
||||||
|
| 메타데이터 보기 (EXIF, 위치) | 예 | 예 |
|
||||||
|
| 메타데이터, 사물, 얼굴 및 클립으로 검색 | 예 | 예 |
|
||||||
|
| 관리 기능 (사용자 관리) | 아니요 | 예 |
|
||||||
|
| 백그라운드 백업 | 예 | N/A |
|
||||||
|
| 가상 스크롤 | 예 | 예 |
|
||||||
|
| OAuth 지원 | 예 | 예 |
|
||||||
|
| API 키 | N/A | 예 |
|
||||||
|
| 라이브 포토/모션 포토 백업 및 재생 | 예 | 예 |
|
||||||
|
| 사용자 정의 스토리지 구조 | 예 | 예 |
|
||||||
|
| 모든 사용자와 공유 | 아니요 | 예 |
|
||||||
|
| 아카이브 및 즐겨찾기 | 예 |예|
|
||||||
|
| 글로벌 지도 | 예 | 예 |
|
||||||
|
| 특정 사용자와 공유 | 예 | 예 |
|
||||||
|
| 얼굴 인식 및 클러스터링 | 예 | 예 |
|
||||||
|
| 추억 (~년 전) | 예 | 예 |
|
||||||
|
| 오프라인 지원 | 예 | 아니요 |
|
||||||
|
| 읽기 전용 갤러리 | 예 | 예 |
|
||||||
|
| 사진 스택 | 예 | 예 |
|
||||||
|
|
||||||
|
## 프로젝트 지원
|
||||||
|
|
||||||
|
저는 이 프로젝트에 전념해왔고, 앞으로도 멈추지 않을 것입니다. 문서를 업데이트하고, 새로운 기능을 추가하고, 버그를 수정하려 합니다. 하지만 혼자서는 할 수 없습니다. 계속해서 나아갈 수 있는 추가적인 동기부여를 위해 당신의 도움이 필요합니다.
|
||||||
|
|
||||||
|
[selfhosted.show - In the episode 'The-organization-must-not-be-name is a Hostile Actor'](https://selfhosted.show/79?t=1418) 진행자가 말했듯이, 우리가 하고 있는 것은 대규모 프로젝트입니다. 언젠가는 이 일을 풀타임으로 하는 것을 희망하며, 이를 실현하기 위해 당신의 도움이 필요합니다.
|
||||||
|
|
||||||
|
만약 이에 동의하거나 이 앱을 장기간 사용하고자 한다면, 아래의 수단을 통해 이 프로젝트를 지원해 주세요.
|
||||||
|
|
||||||
|
### 후원
|
||||||
|
|
||||||
|
- GitHub 스폰서를 통한 [정기 후원](https://github.com/sponsors/alextran1502)
|
||||||
|
- GitHub 스폰서를 통한 [일시 후원](https://github.com/sponsors/alextran1502?frequency=one-time&sponsor=alextran1502)
|
||||||
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
|
@ -18,14 +18,16 @@
|
||||||
</a>
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README_zh_CN.md">中文</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
@ -111,3 +113,4 @@ Als je denkt dat dit het juiste doel is en de app iets is dat je jezelf al heel
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
|
@ -19,13 +19,15 @@
|
||||||
<br/>
|
<br/>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README.md">English</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_zh_CN.md">中文</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_zh_CN.md">中文</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Feragatname
|
## Feragatname
|
||||||
|
@ -108,3 +110,4 @@ Eğer bu size doğru bir amaç gibi geliyorsa ve uygulamanın uzun bir süre boy
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
- ZCash: u1smm4wvqegcp46zss2jf5xptchgeczp4rx7a0wu3mermf2wxahm26yyz5w9mw3f2p4emwlljxjumg774kgs8rntt9yags0whnzane4n67z4c7gppq4yyvcj404ne3r769prwzd9j8ntvqp44fa6d67sf7rmcfjmds3gmeceff4u8e92rh38nd30cr96xw6vfhk6scu4ws90ldzupr3sz
|
||||||
|
|
|
@ -23,16 +23,17 @@
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="README.md">English</a>
|
<a href="README.md">English</a>
|
||||||
<a href="README_tr_TR.md">Türkçe</a>
|
|
||||||
<a href="README_ca_ES.md">Català</a>
|
<a href="README_ca_ES.md">Català</a>
|
||||||
<a href="README_es_ES.md">Español</a>
|
<a href="README_es_ES.md">Español</a>
|
||||||
<a href="README_fr_FR.md">Français</a>
|
<a href="README_fr_FR.md">Français</a>
|
||||||
<a href="README_nl_NL.md">Nederlands</a>
|
|
||||||
<a href="README_ja_JP.md">日本語</a>
|
|
||||||
<a href="README_it_IT.md">Italiano</a>
|
<a href="README_it_IT.md">Italiano</a>
|
||||||
|
<a href="README_ja_JP.md">日本語</a>
|
||||||
|
<a href="README_ko_KR.md">한국어</a>
|
||||||
|
<a href="README_de_DE.md">Deutsch</a>
|
||||||
|
<a href="README_nl_NL.md">Nederlands</a>
|
||||||
|
<a href="README_tr_TR.md">Türkçe</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
## 免责声明
|
## 免责声明
|
||||||
|
|
||||||
- ⚠️ 本项目正在 **非常活跃** 地开发中。
|
- ⚠️ 本项目正在 **非常活跃** 地开发中。
|
||||||
|
|
10
cli/.npmignore
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
**/*.spec.js
|
||||||
|
.editorconfig
|
||||||
|
.eslintignore
|
||||||
|
.eslintrc.js
|
||||||
|
.prettierignore
|
||||||
|
.prettierrc
|
||||||
|
package-lock.json
|
||||||
|
testSetup.js
|
||||||
|
tsconfig.json
|
||||||
|
tsconfig.build.json
|
|
@ -1,46 +1,19 @@
|
||||||
A command-line interface for interfacing with Immich
|
A command-line interface for interfacing with the self-hosted photo manager [Immich](https://immich.app/).
|
||||||
|
|
||||||
# Getting started
|
Please see the [Immich CLI documentation](https://immich.app/docs/features/command-line-interface).
|
||||||
|
|
||||||
$ ts-node cli/src
|
# For developers
|
||||||
|
|
||||||
To start using the CLI, you need to login with an API key first:
|
To run the Immich CLI from source, run the following in the cli folder:
|
||||||
|
|
||||||
$ ts-node cli/src login-key https://your-immich-instance/api your-api-key
|
$ npm run build
|
||||||
|
$ ts-node .
|
||||||
|
|
||||||
NOTE: This will store your api key under ~/.config/immich/auth.yml
|
You'll need ts-node, the easiest way to install it is to use npm:
|
||||||
|
|
||||||
Next, you can run commands:
|
$ npm i -g ts-node
|
||||||
|
|
||||||
$ ts-node cli/src server-info
|
You can also build and install the CLI using
|
||||||
|
|
||||||
When you're done, log out to remove the credentials from your filesystem
|
$ npm run build
|
||||||
|
$ npm install -g .
|
||||||
$ ts-node cli/src logout
|
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
```
|
|
||||||
Usage: immich [options] [command]
|
|
||||||
|
|
||||||
Immich command line interface
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-h, --help display help for command
|
|
||||||
|
|
||||||
Commands:
|
|
||||||
upload [options] [paths...] Upload assets
|
|
||||||
import [options] [paths...] Import existing assets
|
|
||||||
server-info Display server information
|
|
||||||
login-key [instanceUrl] [apiKey] Login using an API key
|
|
||||||
help [command] display help for command
|
|
||||||
```
|
|
||||||
|
|
||||||
# Todo
|
|
||||||
|
|
||||||
- Sidecar should check both .jpg.xmp and .xmp
|
|
||||||
- Sidecar check could be case-insensitive
|
|
||||||
|
|
||||||
# Known issues
|
|
||||||
|
|
||||||
- Upload can't use sdk due to multiple issues
|
|
||||||
|
|
1569
cli/package-lock.json
generated
|
@ -1,14 +1,23 @@
|
||||||
{
|
{
|
||||||
"name": "immich-cli",
|
"name": "@immich/cli",
|
||||||
|
"version": "2.0.4",
|
||||||
|
"description": "Command Line Interface (CLI) for Immich",
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"bin": {
|
||||||
|
"immich": "./dist/src/index.js"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"immich",
|
||||||
|
"cli"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.6.2",
|
||||||
"byte-size": "^8.1.1",
|
"byte-size": "^8.1.1",
|
||||||
"cli-progress": "^3.12.0",
|
"cli-progress": "^3.12.0",
|
||||||
"commander": "^11.0.0",
|
"commander": "^11.0.0",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"glob": "^10.3.1",
|
"glob": "^10.3.1",
|
||||||
"picomatch": "^2.3.1",
|
|
||||||
"systeminformation": "^5.18.4",
|
|
||||||
"yaml": "^2.3.1"
|
"yaml": "^2.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -20,14 +29,14 @@
|
||||||
"@types/mime-types": "^2.1.1",
|
"@types/mime-types": "^2.1.1",
|
||||||
"@types/mock-fs": "^4.13.1",
|
"@types/mock-fs": "^4.13.1",
|
||||||
"@types/node": "^20.3.1",
|
"@types/node": "^20.3.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||||
"@typescript-eslint/parser": "^5.48.1",
|
"@typescript-eslint/parser": "^6.0.0",
|
||||||
"chai": "^4.3.7",
|
"chai": "^4.3.7",
|
||||||
"eslint": "^8.43.0",
|
"eslint": "^8.43.0",
|
||||||
"eslint-config-prettier": "^8.8.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-plugin-jest": "^27.2.2",
|
"eslint-plugin-jest": "^27.2.2",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^5.0.0",
|
||||||
"eslint-plugin-unicorn": "^47.0.0",
|
"eslint-plugin-unicorn": "^49.0.0",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.5.0",
|
||||||
"jest-extended": "^4.0.0",
|
"jest-extended": "^4.0.0",
|
||||||
"jest-message-util": "^29.5.0",
|
"jest-message-util": "^29.5.0",
|
||||||
|
@ -37,15 +46,17 @@
|
||||||
"ts-jest": "^29.1.0",
|
"ts-jest": "^29.1.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"tslib": "^2.5.3",
|
"tslib": "^2.5.3",
|
||||||
"typescript": "^4.9.4"
|
"typescript": "^5.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --project tsconfig.build.json",
|
"build": "tsc --project tsconfig.build.json",
|
||||||
"lint": "eslint \"src/**/*.ts\" --max-warnings 0",
|
"lint": "eslint \"src/**/*.ts\" --max-warnings 0",
|
||||||
"prepack": "yarn build ",
|
"prepack": "npm run build",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
"format": "prettier --check ."
|
"format": "prettier --check .",
|
||||||
|
"format:fix": "prettier --write .",
|
||||||
|
"check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"clearMocks": true,
|
"clearMocks": true,
|
||||||
|
@ -62,7 +73,15 @@
|
||||||
"collectCoverageFrom": [
|
"collectCoverageFrom": [
|
||||||
"<rootDir>/src/**/*.(t|j)s"
|
"<rootDir>/src/**/*.(t|j)s"
|
||||||
],
|
],
|
||||||
|
"moduleNameMapper": {
|
||||||
|
"^@api(|/.*)$": "<rootDir>/src/api/$1"
|
||||||
|
},
|
||||||
"coverageDirectory": "./coverage",
|
"coverageDirectory": "./coverage",
|
||||||
"testEnvironment": "node"
|
"testEnvironment": "node"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "github:immich-app/immich",
|
||||||
|
"directory": "cli"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
// ./__mocks__/axios.js
|
|
||||||
import mockAxios from 'jest-mock-axios';
|
|
||||||
export default mockAxios;
|
|
|
@ -11,6 +11,7 @@ import {
|
||||||
UserApi,
|
UserApi,
|
||||||
} from './open-api';
|
} from './open-api';
|
||||||
import { ApiConfiguration } from '../cores/api-configuration';
|
import { ApiConfiguration } from '../cores/api-configuration';
|
||||||
|
import FormData from 'form-data';
|
||||||
|
|
||||||
export class ImmichApi {
|
export class ImmichApi {
|
||||||
public userApi: UserApi;
|
public userApi: UserApi;
|
||||||
|
@ -35,6 +36,7 @@ export class ImmichApi {
|
||||||
'x-api-key': apiKey,
|
'x-api-key': apiKey,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
formDataCtor: FormData,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.userApi = new UserApi(this.config);
|
this.userApi = new UserApi(this.config);
|
||||||
|
|
4292
cli/src/api/open-api/api.ts
generated
2
cli/src/api/open-api/base.ts
generated
|
@ -4,7 +4,7 @@
|
||||||
* Immich
|
* Immich
|
||||||
* Immich API
|
* Immich API
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.82.1
|
* The version of the OpenAPI document: 1.89.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
2
cli/src/api/open-api/common.ts
generated
|
@ -4,7 +4,7 @@
|
||||||
* Immich
|
* Immich
|
||||||
* Immich API
|
* Immich API
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.82.1
|
* The version of the OpenAPI document: 1.89.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
2
cli/src/api/open-api/configuration.ts
generated
|
@ -4,7 +4,7 @@
|
||||||
* Immich
|
* Immich
|
||||||
* Immich API
|
* Immich API
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.82.1
|
* The version of the OpenAPI document: 1.89.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
2
cli/src/api/open-api/index.ts
generated
|
@ -4,7 +4,7 @@
|
||||||
* Immich
|
* Immich
|
||||||
* Immich API
|
* Immich API
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.82.1
|
* The version of the OpenAPI document: 1.89.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { ServerVersionResponseDto, UserResponseDto } from 'src/api/open-api';
|
||||||
export abstract class BaseCommand {
|
export abstract class BaseCommand {
|
||||||
protected sessionService!: SessionService;
|
protected sessionService!: SessionService;
|
||||||
protected immichApi!: ImmichApi;
|
protected immichApi!: ImmichApi;
|
||||||
protected deviceId!: string;
|
|
||||||
protected user!: UserResponseDto;
|
protected user!: UserResponseDto;
|
||||||
protected serverVersion!: ServerVersionResponseDto;
|
protected serverVersion!: ServerVersionResponseDto;
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
import { BaseCommand } from '../cli/base-command';
|
import { BaseCommand } from '../cli/base-command';
|
||||||
|
|
||||||
export default class ServerInfo extends BaseCommand {
|
export default class ServerInfo extends BaseCommand {
|
||||||
static description = 'Display server information';
|
|
||||||
static enableJsonFlag = true;
|
|
||||||
|
|
||||||
public async run() {
|
public async run() {
|
||||||
console.log('Getting server information');
|
|
||||||
|
|
||||||
await this.connect();
|
await this.connect();
|
||||||
const { data: versionInfo } = await this.immichApi.serverInfoApi.getServerVersion();
|
const { data: versionInfo } = await this.immichApi.serverInfoApi.getServerVersion();
|
||||||
|
|
||||||
console.log(versionInfo);
|
console.log(`Server is running version ${versionInfo.major}.${versionInfo.minor}.${versionInfo.patch}`);
|
||||||
|
|
||||||
|
const { data: supportedmedia } = await this.immichApi.serverInfoApi.getSupportedMediaTypes();
|
||||||
|
|
||||||
|
console.log(`Supported image types: ${supportedmedia.image.map((extension) => extension.replace('.', ''))}`);
|
||||||
|
|
||||||
|
console.log(`Supported video types: ${supportedmedia.video.map((extension) => extension.replace('.', ''))}`);
|
||||||
|
|
||||||
|
const { data: statistics } = await this.immichApi.assetApi.getAssetStatistics();
|
||||||
|
console.log(`Images: ${statistics.images}, Videos: ${statistics.videos}, Total: ${statistics.total}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,43 +1,38 @@
|
||||||
import { BaseCommand } from '../cli/base-command';
|
import { Asset } from '../cores/models/asset';
|
||||||
import { CrawledAsset } from '../cores/models/crawled-asset';
|
import { CrawlService } from '../services';
|
||||||
import { CrawlService, UploadService } from '../services';
|
|
||||||
import * as si from 'systeminformation';
|
|
||||||
import FormData from 'form-data';
|
|
||||||
import { UploadOptionsDto } from '../cores/dto/upload-options-dto';
|
import { UploadOptionsDto } from '../cores/dto/upload-options-dto';
|
||||||
import { CrawlOptionsDto } from '../cores/dto/crawl-options-dto';
|
import { CrawlOptionsDto } from '../cores/dto/crawl-options-dto';
|
||||||
|
|
||||||
import cliProgress from 'cli-progress';
|
import cliProgress from 'cli-progress';
|
||||||
import byteSize from 'byte-size';
|
import byteSize from 'byte-size';
|
||||||
|
import { BaseCommand } from '../cli/base-command';
|
||||||
|
import axios, { AxiosRequestConfig } from 'axios';
|
||||||
|
import FormData from 'form-data';
|
||||||
|
|
||||||
export default class Upload extends BaseCommand {
|
export default class Upload extends BaseCommand {
|
||||||
private crawlService = new CrawlService();
|
|
||||||
private uploadService!: UploadService;
|
|
||||||
deviceId!: string;
|
|
||||||
uploadLength!: number;
|
uploadLength!: number;
|
||||||
dryRun = false;
|
|
||||||
|
|
||||||
public async run(paths: string[], options: UploadOptionsDto): Promise<void> {
|
public async run(paths: string[], options: UploadOptionsDto): Promise<void> {
|
||||||
await this.connect();
|
await this.connect();
|
||||||
|
|
||||||
const uuid = await si.uuid();
|
const deviceId = 'CLI';
|
||||||
this.deviceId = uuid.os || 'CLI';
|
|
||||||
this.uploadService = new UploadService(this.immichApi.apiConfiguration);
|
|
||||||
|
|
||||||
this.dryRun = options.dryRun;
|
const formatResponse = await this.immichApi.serverInfoApi.getSupportedMediaTypes();
|
||||||
|
const crawlService = new CrawlService(formatResponse.data.image, formatResponse.data.video);
|
||||||
|
|
||||||
const crawlOptions = new CrawlOptionsDto();
|
const crawlOptions = new CrawlOptionsDto();
|
||||||
crawlOptions.pathsToCrawl = paths;
|
crawlOptions.pathsToCrawl = paths;
|
||||||
crawlOptions.recursive = options.recursive;
|
crawlOptions.recursive = options.recursive;
|
||||||
crawlOptions.excludePatterns = options.excludePatterns;
|
crawlOptions.exclusionPatterns = options.exclusionPatterns;
|
||||||
|
|
||||||
const crawledFiles: string[] = await this.crawlService.crawl(crawlOptions);
|
const crawledFiles: string[] = await crawlService.crawl(crawlOptions);
|
||||||
|
|
||||||
if (crawledFiles.length === 0) {
|
if (crawledFiles.length === 0) {
|
||||||
console.log('No assets found, exiting');
|
console.log('No assets found, exiting');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const assetsToUpload = crawledFiles.map((path) => new CrawledAsset(path));
|
const assetsToUpload = crawledFiles.map((path) => new Asset(path, deviceId));
|
||||||
|
|
||||||
const uploadProgress = new cliProgress.SingleBar(
|
const uploadProgress = new cliProgress.SingleBar(
|
||||||
{
|
{
|
||||||
|
@ -58,118 +53,108 @@ export default class Upload extends BaseCommand {
|
||||||
totalSize += asset.fileSize;
|
totalSize += asset.fileSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const existingAlbums = (await this.immichApi.albumApi.getAllAlbums()).data;
|
||||||
|
|
||||||
uploadProgress.start(totalSize, 0);
|
uploadProgress.start(totalSize, 0);
|
||||||
uploadProgress.update({ value_formatted: 0, total_formatted: byteSize(totalSize) });
|
uploadProgress.update({ value_formatted: 0, total_formatted: byteSize(totalSize) });
|
||||||
|
|
||||||
for (const asset of assetsToUpload) {
|
try {
|
||||||
uploadProgress.update({
|
for (const asset of assetsToUpload) {
|
||||||
filename: asset.path,
|
uploadProgress.update({
|
||||||
});
|
filename: asset.path,
|
||||||
|
});
|
||||||
|
|
||||||
try {
|
let skipUpload = false;
|
||||||
if (options.import) {
|
if (!options.skipHash) {
|
||||||
const importData = {
|
const assetBulkUploadCheckDto = { assets: [{ id: asset.path, checksum: await asset.hash() }] };
|
||||||
assetPath: asset.path,
|
|
||||||
sidecarPath: asset.sidecarPath,
|
|
||||||
deviceAssetId: asset.deviceAssetId,
|
|
||||||
deviceId: this.deviceId,
|
|
||||||
fileCreatedAt: asset.fileCreatedAt,
|
|
||||||
fileModifiedAt: asset.fileModifiedAt,
|
|
||||||
isFavorite: false,
|
|
||||||
isReadOnly: options.readOnly,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!this.dryRun) {
|
const checkResponse = await this.immichApi.assetApi.checkBulkUpload({
|
||||||
await this.uploadService.import(importData);
|
assetBulkUploadCheckDto,
|
||||||
}
|
});
|
||||||
} else {
|
|
||||||
await this.uploadAsset(asset, options.skipHash);
|
skipUpload = checkResponse.data.results[0].action === 'reject';
|
||||||
}
|
}
|
||||||
} catch (error) {
|
|
||||||
uploadProgress.stop();
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
|
|
||||||
sizeSoFar += asset.fileSize;
|
if (!skipUpload) {
|
||||||
if (!asset.skipped) {
|
if (!options.dryRun) {
|
||||||
totalSizeUploaded += asset.fileSize;
|
const formData = asset.getUploadFormData();
|
||||||
uploadCounter++;
|
const res = await this.uploadAsset(formData);
|
||||||
}
|
|
||||||
|
|
||||||
uploadProgress.update(sizeSoFar, { value_formatted: byteSize(sizeSoFar) });
|
if (options.album && asset.albumName) {
|
||||||
|
let album = existingAlbums.find((album) => album.albumName === asset.albumName);
|
||||||
|
if (!album) {
|
||||||
|
const res = await this.immichApi.albumApi.createAlbum({
|
||||||
|
createAlbumDto: { albumName: asset.albumName },
|
||||||
|
});
|
||||||
|
album = res.data;
|
||||||
|
existingAlbums.push(album);
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.immichApi.albumApi.addAssetsToAlbum({ id: album.id, bulkIdsDto: { ids: [res.data.id] } });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
totalSizeUploaded += asset.fileSize;
|
||||||
|
uploadCounter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
sizeSoFar += asset.fileSize;
|
||||||
|
|
||||||
|
uploadProgress.update(sizeSoFar, { value_formatted: byteSize(sizeSoFar) });
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
uploadProgress.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadProgress.stop();
|
|
||||||
|
|
||||||
let messageStart;
|
let messageStart;
|
||||||
if (this.dryRun) {
|
if (options.dryRun) {
|
||||||
messageStart = 'Would have ';
|
messageStart = 'Would have';
|
||||||
} else {
|
} else {
|
||||||
messageStart = 'Successfully ';
|
messageStart = 'Successfully';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.import) {
|
if (uploadCounter === 0) {
|
||||||
console.log(`${messageStart} imported ${uploadCounter} assets (${byteSize(totalSizeUploaded)})`);
|
console.log('All assets were already uploaded, nothing to do.');
|
||||||
} else {
|
} else {
|
||||||
if (uploadCounter === 0) {
|
console.log(`${messageStart} uploaded ${uploadCounter} assets (${byteSize(totalSizeUploaded)})`);
|
||||||
console.log('All assets were already uploaded, nothing to do.');
|
}
|
||||||
|
if (options.delete) {
|
||||||
|
if (options.dryRun) {
|
||||||
|
console.log(`Would now have deleted assets, but skipped due to dry run`);
|
||||||
} else {
|
} else {
|
||||||
console.log(`${messageStart} uploaded ${uploadCounter} assets (${byteSize(totalSizeUploaded)})`);
|
console.log('Deleting assets that have been uploaded...');
|
||||||
}
|
const deletionProgress = new cliProgress.SingleBar(cliProgress.Presets.shades_classic);
|
||||||
if (options.delete) {
|
deletionProgress.start(crawledFiles.length, 0);
|
||||||
if (this.dryRun) {
|
|
||||||
console.log(`Would now have deleted assets, but skipped due to dry run`);
|
|
||||||
} else {
|
|
||||||
console.log('Deleting assets that have been uploaded...');
|
|
||||||
const deletionProgress = new cliProgress.SingleBar(cliProgress.Presets.shades_classic);
|
|
||||||
deletionProgress.start(crawledFiles.length, 0);
|
|
||||||
|
|
||||||
for (const asset of assetsToUpload) {
|
for (const asset of assetsToUpload) {
|
||||||
if (!this.dryRun) {
|
if (!options.dryRun) {
|
||||||
await asset.delete();
|
await asset.delete();
|
||||||
}
|
|
||||||
deletionProgress.increment();
|
|
||||||
}
|
}
|
||||||
deletionProgress.stop();
|
deletionProgress.increment();
|
||||||
console.log('Deletion complete');
|
|
||||||
}
|
}
|
||||||
|
deletionProgress.stop();
|
||||||
|
console.log('Deletion complete');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async uploadAsset(asset: CrawledAsset, skipHash = false) {
|
private async uploadAsset(data: FormData): Promise<axios.AxiosResponse> {
|
||||||
await asset.readData();
|
const url = this.immichApi.apiConfiguration.instanceUrl + '/asset/upload';
|
||||||
|
|
||||||
let skipUpload = false;
|
const config: AxiosRequestConfig = {
|
||||||
if (!skipHash) {
|
method: 'post',
|
||||||
const checksum = await asset.hash();
|
maxRedirects: 0,
|
||||||
|
url,
|
||||||
|
headers: {
|
||||||
|
'x-api-key': this.immichApi.apiConfiguration.apiKey,
|
||||||
|
...data.getHeaders(),
|
||||||
|
},
|
||||||
|
maxContentLength: Infinity,
|
||||||
|
maxBodyLength: Infinity,
|
||||||
|
data,
|
||||||
|
};
|
||||||
|
|
||||||
const checkResponse = await this.uploadService.checkIfAssetAlreadyExists(asset.path, checksum);
|
const res = await axios(config);
|
||||||
skipUpload = checkResponse.data.results[0].action === 'reject';
|
return res;
|
||||||
}
|
|
||||||
|
|
||||||
if (skipUpload) {
|
|
||||||
asset.skipped = true;
|
|
||||||
} else {
|
|
||||||
const uploadFormData = new FormData();
|
|
||||||
|
|
||||||
uploadFormData.append('deviceAssetId', asset.deviceAssetId);
|
|
||||||
uploadFormData.append('deviceId', this.deviceId);
|
|
||||||
uploadFormData.append('fileCreatedAt', asset.fileCreatedAt);
|
|
||||||
uploadFormData.append('fileModifiedAt', asset.fileModifiedAt);
|
|
||||||
uploadFormData.append('isFavorite', String(false));
|
|
||||||
uploadFormData.append('assetData', asset.assetData, { filename: asset.path });
|
|
||||||
|
|
||||||
if (asset.sidecarData) {
|
|
||||||
uploadFormData.append('sidecarData', asset.sidecarData, {
|
|
||||||
filename: asset.sidecarPath,
|
|
||||||
contentType: 'application/xml',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.dryRun) {
|
|
||||||
await this.uploadService.upload(uploadFormData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
// Check asset-upload.config.spec.ts for complete list
|
|
||||||
// TODO: we should get this list from the server via API in the future
|
|
||||||
|
|
||||||
// Videos
|
|
||||||
const videos = ['mp4', 'webm', 'mov', '3gp', 'avi', 'm2ts', 'mts', 'mpg', 'flv', 'mkv', 'wmv'];
|
|
||||||
|
|
||||||
// Images
|
|
||||||
const heic = ['heic', 'heif'];
|
|
||||||
const jpeg = ['jpg', 'jpeg'];
|
|
||||||
const png = ['png'];
|
|
||||||
const gif = ['gif'];
|
|
||||||
const tiff = ['tif', 'tiff'];
|
|
||||||
const webp = ['webp'];
|
|
||||||
const dng = ['dng'];
|
|
||||||
const other = [
|
|
||||||
'3fr',
|
|
||||||
'ari',
|
|
||||||
'arw',
|
|
||||||
'avif',
|
|
||||||
'cap',
|
|
||||||
'cin',
|
|
||||||
'cr2',
|
|
||||||
'cr3',
|
|
||||||
'crw',
|
|
||||||
'dcr',
|
|
||||||
'nef',
|
|
||||||
'erf',
|
|
||||||
'fff',
|
|
||||||
'iiq',
|
|
||||||
'jxl',
|
|
||||||
'k25',
|
|
||||||
'kdc',
|
|
||||||
'mrw',
|
|
||||||
'orf',
|
|
||||||
'ori',
|
|
||||||
'pef',
|
|
||||||
'psd',
|
|
||||||
'raf',
|
|
||||||
'raw',
|
|
||||||
'rwl',
|
|
||||||
'sr2',
|
|
||||||
'srf',
|
|
||||||
'srw',
|
|
||||||
'orf',
|
|
||||||
'ori',
|
|
||||||
'x3f',
|
|
||||||
];
|
|
||||||
|
|
||||||
export const ACCEPTED_FILE_EXTENSIONS = [
|
|
||||||
...videos,
|
|
||||||
...jpeg,
|
|
||||||
...png,
|
|
||||||
...heic,
|
|
||||||
...gif,
|
|
||||||
...tiff,
|
|
||||||
...webp,
|
|
||||||
...dng,
|
|
||||||
...other,
|
|
||||||
];
|
|
|
@ -1,6 +1,6 @@
|
||||||
export class CrawlOptionsDto {
|
export class CrawlOptionsDto {
|
||||||
pathsToCrawl!: string[];
|
pathsToCrawl!: string[];
|
||||||
recursive = false;
|
recursive? = false;
|
||||||
includeHidden = false;
|
includeHidden? = false;
|
||||||
excludePatterns!: string[];
|
exclusionPatterns?: string[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
export class UploadOptionsDto {
|
export class UploadOptionsDto {
|
||||||
recursive = false;
|
recursive = false;
|
||||||
excludePatterns!: string[];
|
exclusionPatterns!: string[];
|
||||||
dryRun = false;
|
dryRun = false;
|
||||||
skipHash = false;
|
skipHash = false;
|
||||||
delete = false;
|
delete = false;
|
||||||
import = false;
|
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
|
album = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export * from './constants';
|
|
||||||
export * from './models';
|
export * from './models';
|
||||||
|
|
100
cli/src/cores/models/asset.ts
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
import * as fs from 'fs';
|
||||||
|
import { basename } from 'node:path';
|
||||||
|
import crypto from 'crypto';
|
||||||
|
import Os from 'os';
|
||||||
|
import FormData from 'form-data';
|
||||||
|
|
||||||
|
export class Asset {
|
||||||
|
readonly path: string;
|
||||||
|
readonly deviceId!: string;
|
||||||
|
|
||||||
|
assetData?: fs.ReadStream;
|
||||||
|
deviceAssetId?: string;
|
||||||
|
fileCreatedAt?: string;
|
||||||
|
fileModifiedAt?: string;
|
||||||
|
sidecarData?: fs.ReadStream;
|
||||||
|
sidecarPath?: string;
|
||||||
|
fileSize!: number;
|
||||||
|
albumName?: string;
|
||||||
|
|
||||||
|
constructor(path: string, deviceId: string) {
|
||||||
|
this.path = path;
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
async process() {
|
||||||
|
const stats = await fs.promises.stat(this.path);
|
||||||
|
this.deviceAssetId = `${basename(this.path)}-${stats.size}`.replace(/\s+/g, '');
|
||||||
|
this.fileCreatedAt = stats.mtime.toISOString();
|
||||||
|
this.fileModifiedAt = stats.mtime.toISOString();
|
||||||
|
this.fileSize = stats.size;
|
||||||
|
this.albumName = this.extractAlbumName();
|
||||||
|
|
||||||
|
this.assetData = this.getReadStream(this.path);
|
||||||
|
|
||||||
|
// TODO: doesn't xmp replace the file extension? Will need investigation
|
||||||
|
const sideCarPath = `${this.path}.xmp`;
|
||||||
|
try {
|
||||||
|
fs.accessSync(sideCarPath, fs.constants.R_OK);
|
||||||
|
this.sidecarData = this.getReadStream(sideCarPath);
|
||||||
|
} catch (error) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
getUploadFormData(): FormData {
|
||||||
|
if (!this.assetData) throw new Error('Asset data not set');
|
||||||
|
if (!this.deviceAssetId) throw new Error('Device asset id not set');
|
||||||
|
if (!this.fileCreatedAt) throw new Error('File created at not set');
|
||||||
|
if (!this.fileModifiedAt) throw new Error('File modified at not set');
|
||||||
|
if (!this.deviceId) throw new Error('Device id not set');
|
||||||
|
|
||||||
|
const data: any = {
|
||||||
|
assetData: this.assetData as any,
|
||||||
|
deviceAssetId: this.deviceAssetId,
|
||||||
|
deviceId: this.deviceId,
|
||||||
|
fileCreatedAt: this.fileCreatedAt,
|
||||||
|
fileModifiedAt: this.fileModifiedAt,
|
||||||
|
isFavorite: String(false),
|
||||||
|
};
|
||||||
|
const formData = new FormData();
|
||||||
|
|
||||||
|
for (const prop in data) {
|
||||||
|
formData.append(prop, data[prop]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.sidecarData) {
|
||||||
|
formData.append('sidecarData', this.sidecarData);
|
||||||
|
}
|
||||||
|
|
||||||
|
return formData;
|
||||||
|
}
|
||||||
|
|
||||||
|
private getReadStream(path: string): fs.ReadStream {
|
||||||
|
return fs.createReadStream(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
async delete(): Promise<void> {
|
||||||
|
return fs.promises.unlink(this.path);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async hash(): Promise<string> {
|
||||||
|
const sha1 = (filePath: string) => {
|
||||||
|
const hash = crypto.createHash('sha1');
|
||||||
|
return new Promise<string>((resolve, reject) => {
|
||||||
|
const rs = fs.createReadStream(filePath);
|
||||||
|
rs.on('error', reject);
|
||||||
|
rs.on('data', (chunk) => hash.update(chunk));
|
||||||
|
rs.on('end', () => resolve(hash.digest('hex')));
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return await sha1(this.path);
|
||||||
|
}
|
||||||
|
|
||||||
|
private extractAlbumName(): string {
|
||||||
|
if (Os.platform() === 'win32') {
|
||||||
|
return this.path.split('\\').slice(-2)[0];
|
||||||
|
} else {
|
||||||
|
return this.path.split('/').slice(-2)[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,58 +0,0 @@
|
||||||
import * as fs from 'fs';
|
|
||||||
import { basename } from 'node:path';
|
|
||||||
import crypto from 'crypto';
|
|
||||||
|
|
||||||
export class CrawledAsset {
|
|
||||||
public path: string;
|
|
||||||
|
|
||||||
public assetData?: fs.ReadStream;
|
|
||||||
public deviceAssetId?: string;
|
|
||||||
public fileCreatedAt?: string;
|
|
||||||
public fileModifiedAt?: string;
|
|
||||||
public sidecarData?: Buffer;
|
|
||||||
public sidecarPath?: string;
|
|
||||||
public fileSize!: number;
|
|
||||||
public skipped = false;
|
|
||||||
|
|
||||||
constructor(path: string) {
|
|
||||||
this.path = path;
|
|
||||||
}
|
|
||||||
|
|
||||||
async readData() {
|
|
||||||
this.assetData = fs.createReadStream(this.path);
|
|
||||||
}
|
|
||||||
|
|
||||||
async process() {
|
|
||||||
const stats = await fs.promises.stat(this.path);
|
|
||||||
this.deviceAssetId = `${basename(this.path)}-${stats.size}`.replace(/\s+/g, '');
|
|
||||||
this.fileCreatedAt = stats.mtime.toISOString();
|
|
||||||
this.fileModifiedAt = stats.mtime.toISOString();
|
|
||||||
this.fileSize = stats.size;
|
|
||||||
|
|
||||||
// TODO: doesn't xmp replace the file extension? Will need investigation
|
|
||||||
const sideCarPath = `${this.path}.xmp`;
|
|
||||||
try {
|
|
||||||
fs.accessSync(sideCarPath, fs.constants.R_OK);
|
|
||||||
this.sidecarData = await fs.promises.readFile(sideCarPath);
|
|
||||||
this.sidecarPath = sideCarPath;
|
|
||||||
} catch (error) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
async delete(): Promise<void> {
|
|
||||||
return fs.promises.unlink(this.path);
|
|
||||||
}
|
|
||||||
|
|
||||||
public async hash(): Promise<string> {
|
|
||||||
const sha1 = (filePath: string) => {
|
|
||||||
const hash = crypto.createHash('sha1');
|
|
||||||
return new Promise<string>((resolve, reject) => {
|
|
||||||
const rs = fs.createReadStream(filePath);
|
|
||||||
rs.on('error', reject);
|
|
||||||
rs.on('data', (chunk) => hash.update(chunk));
|
|
||||||
rs.on('end', () => resolve(hash.digest('hex')));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
return await sha1(this.path);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +1 @@
|
||||||
export * from './crawled-asset';
|
export * from './asset';
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
|
#! /usr/bin/env node
|
||||||
|
|
||||||
import { program, Option } from 'commander';
|
import { program, Option } from 'commander';
|
||||||
import Upload from './commands/upload';
|
import Upload from './commands/upload';
|
||||||
import ServerInfo from './commands/server-info';
|
import ServerInfo from './commands/server-info';
|
||||||
import LoginKey from './commands/login/key';
|
import LoginKey from './commands/login/key';
|
||||||
|
import Logout from './commands/logout';
|
||||||
|
import { version } from '../package.json';
|
||||||
|
|
||||||
program.name('immich').description('Immich command line interface');
|
program.name('immich').description('Immich command line interface').version(version);
|
||||||
|
|
||||||
program
|
program
|
||||||
.command('upload')
|
.command('upload')
|
||||||
|
@ -12,6 +16,11 @@ program
|
||||||
.addOption(new Option('-r, --recursive', 'Recursive').env('IMMICH_RECURSIVE').default(false))
|
.addOption(new Option('-r, --recursive', 'Recursive').env('IMMICH_RECURSIVE').default(false))
|
||||||
.addOption(new Option('-i, --ignore [paths...]', 'Paths to ignore').env('IMMICH_IGNORE_PATHS'))
|
.addOption(new Option('-i, --ignore [paths...]', 'Paths to ignore').env('IMMICH_IGNORE_PATHS'))
|
||||||
.addOption(new Option('-h, --skip-hash', "Don't hash files before upload").env('IMMICH_SKIP_HASH').default(false))
|
.addOption(new Option('-h, --skip-hash', "Don't hash files before upload").env('IMMICH_SKIP_HASH').default(false))
|
||||||
|
.addOption(
|
||||||
|
new Option('-a, --album', 'Automatically create albums based on folder name')
|
||||||
|
.env('IMMICH_AUTO_CREATE_ALBUM')
|
||||||
|
.default(false),
|
||||||
|
)
|
||||||
.addOption(
|
.addOption(
|
||||||
new Option('-n, --dry-run', "Don't perform any actions, just show what will be done")
|
new Option('-n, --dry-run', "Don't perform any actions, just show what will be done")
|
||||||
.env('IMMICH_DRY_RUN')
|
.env('IMMICH_DRY_RUN')
|
||||||
|
@ -20,33 +29,13 @@ program
|
||||||
.addOption(new Option('--delete', 'Delete local assets after upload').env('IMMICH_DELETE_ASSETS'))
|
.addOption(new Option('--delete', 'Delete local assets after upload').env('IMMICH_DELETE_ASSETS'))
|
||||||
.argument('[paths...]', 'One or more paths to assets to be uploaded')
|
.argument('[paths...]', 'One or more paths to assets to be uploaded')
|
||||||
.action(async (paths, options) => {
|
.action(async (paths, options) => {
|
||||||
options.excludePatterns = options.ignore;
|
options.exclusionPatterns = options.ignore;
|
||||||
await new Upload().run(paths, options);
|
|
||||||
});
|
|
||||||
|
|
||||||
program
|
|
||||||
.command('import')
|
|
||||||
.description('Import existing assets')
|
|
||||||
.usage('[options] [paths...]')
|
|
||||||
.addOption(new Option('-r, --recursive', 'Recursive').env('IMMICH_RECURSIVE').default(false))
|
|
||||||
.addOption(
|
|
||||||
new Option('-n, --dry-run', "Don't perform any actions, just show what will be done")
|
|
||||||
.env('IMMICH_DRY_RUN')
|
|
||||||
.default(false),
|
|
||||||
)
|
|
||||||
.addOption(new Option('-i, --ignore [paths...]', 'Paths to ignore').env('IMMICH_IGNORE_PATHS').default(false))
|
|
||||||
.addOption(new Option('--no-read-only', 'Import files without read-only protection, allowing Immich to manage them'))
|
|
||||||
.argument('[paths...]', 'One or more paths to assets to be imported')
|
|
||||||
.action(async (paths, options) => {
|
|
||||||
options.import = true;
|
|
||||||
options.excludePatterns = options.ignore;
|
|
||||||
await new Upload().run(paths, options);
|
await new Upload().run(paths, options);
|
||||||
});
|
});
|
||||||
|
|
||||||
program
|
program
|
||||||
.command('server-info')
|
.command('server-info')
|
||||||
.description('Display server information')
|
.description('Display server information')
|
||||||
|
|
||||||
.action(async () => {
|
.action(async () => {
|
||||||
await new ServerInfo().run();
|
await new ServerInfo().run();
|
||||||
});
|
});
|
||||||
|
@ -60,4 +49,11 @@ program
|
||||||
await new LoginKey().run(paths, options);
|
await new LoginKey().run(paths, options);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
program
|
||||||
|
.command('logout')
|
||||||
|
.description('Remove stored credentials')
|
||||||
|
.action(async () => {
|
||||||
|
await new Logout().run();
|
||||||
|
});
|
||||||
|
|
||||||
program.parse(process.argv);
|
program.parse(process.argv);
|
||||||
|
|
|
@ -1,235 +1,206 @@
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
import { CrawlService } from './crawl.service';
|
|
||||||
import mockfs from 'mock-fs';
|
import mockfs from 'mock-fs';
|
||||||
import { toIncludeSameMembers } from 'jest-extended';
|
import { CrawlOptionsDto } from 'src/cores/dto/crawl-options-dto';
|
||||||
import { CrawlOptionsDto } from '../cores/dto/crawl-options-dto';
|
import { CrawlService } from '.';
|
||||||
|
|
||||||
const matchers = require('jest-extended');
|
interface Test {
|
||||||
expect.extend(matchers);
|
test: string;
|
||||||
|
options: CrawlOptionsDto;
|
||||||
|
files: Record<string, boolean>;
|
||||||
|
}
|
||||||
|
|
||||||
const crawlService = new CrawlService();
|
const cwd = process.cwd();
|
||||||
|
|
||||||
describe('CrawlService', () => {
|
const tests: Test[] = [
|
||||||
beforeAll(() => {
|
{
|
||||||
// Write a dummy output before mock-fs to prevent some annoying errors
|
test: 'should return empty when crawling an empty path list',
|
||||||
console.log();
|
options: {
|
||||||
});
|
pathsToCrawl: [],
|
||||||
|
},
|
||||||
|
files: {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should crawl a single path',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should exclude by file extension',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
exclusionPatterns: ['**/*.tif'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/image.tif': false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should exclude by file extension without case sensitivity',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
exclusionPatterns: ['**/*.TIF'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/image.tif': false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should exclude by folder',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
exclusionPatterns: ['**/raw/**'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/raw/image.jpg': false,
|
||||||
|
'/photos/raw2/image.jpg': true,
|
||||||
|
'/photos/folder/raw/image.jpg': false,
|
||||||
|
'/photos/crawl/image.jpg': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should crawl multiple paths',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/', '/images/', '/albums/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image1.jpg': true,
|
||||||
|
'/images/image2.jpg': true,
|
||||||
|
'/albums/image3.jpg': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should support globbing paths',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos*'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos1/image1.jpg': true,
|
||||||
|
'/photos2/image2.jpg': true,
|
||||||
|
'/images/image3.jpg': false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should crawl a single path without trailing slash',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should crawl a single path',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/subfolder/image1.jpg': true,
|
||||||
|
'/photos/subfolder/image2.jpg': true,
|
||||||
|
'/image1.jpg': false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should filter file extensions',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/image.txt': false,
|
||||||
|
'/photos/1': false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should include photo and video extensions',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/', '/videos/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/image.jpeg': true,
|
||||||
|
'/photos/image.heic': true,
|
||||||
|
'/photos/image.heif': true,
|
||||||
|
'/photos/image.png': true,
|
||||||
|
'/photos/image.gif': true,
|
||||||
|
'/photos/image.tif': true,
|
||||||
|
'/photos/image.tiff': true,
|
||||||
|
'/photos/image.webp': true,
|
||||||
|
'/photos/image.dng': true,
|
||||||
|
'/photos/image.nef': true,
|
||||||
|
'/videos/video.mp4': true,
|
||||||
|
'/videos/video.mov': true,
|
||||||
|
'/videos/video.webm': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should check file extensions without case sensitivity',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/image.jpg': true,
|
||||||
|
'/photos/image.Jpg': true,
|
||||||
|
'/photos/image.jpG': true,
|
||||||
|
'/photos/image.JPG': true,
|
||||||
|
'/photos/image.jpEg': true,
|
||||||
|
'/photos/image.TIFF': true,
|
||||||
|
'/photos/image.tif': true,
|
||||||
|
'/photos/image.dng': true,
|
||||||
|
'/photos/image.NEF': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should normalize the path',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['/photos/1/../2'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
'/photos/1/image.jpg': false,
|
||||||
|
'/photos/2/image.jpg': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: 'should return absolute paths',
|
||||||
|
options: {
|
||||||
|
pathsToCrawl: ['photos'],
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
[`${cwd}/photos/1.jpg`]: true,
|
||||||
|
[`${cwd}/photos/2.jpg`]: true,
|
||||||
|
[`/photos/3.jpg`]: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
it('should crawl a single directory', async () => {
|
describe(CrawlService.name, () => {
|
||||||
mockfs({
|
const sut = new CrawlService(
|
||||||
'/photos/image.jpg': '',
|
['.jpg', '.jpeg', '.png', '.heif', '.heic', '.tif', '.nef', '.webp', '.tiff', '.dng', '.gif'],
|
||||||
});
|
['.mov', '.mp4', '.webm'],
|
||||||
|
);
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl a single file', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/image.jpg'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl a file and a directory', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/images/photo.jpg': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/image.jpg', '/images/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg', '/images/photo.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should exclude by file extension', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/image.tif': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
options.excludePatterns = ['**/*.tif'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should exclude by file extension without case sensitivity', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/image.tif': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
options.excludePatterns = ['**/*.TIF'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should exclude by folder', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/raw/image.jpg': '',
|
|
||||||
'/photos/raw2/image.jpg': '',
|
|
||||||
'/photos/folder/raw/image.jpg': '',
|
|
||||||
'/photos/crawl/image.jpg': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
options.excludePatterns = ['**/raw/**'];
|
|
||||||
options.recursive = true;
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg', '/photos/raw2/image.jpg', '/photos/crawl/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl multiple paths', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image1.jpg': '',
|
|
||||||
'/images/image2.jpg': '',
|
|
||||||
'/albums/image3.jpg': '',
|
|
||||||
});
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/', '/images/', '/albums/'];
|
|
||||||
options.recursive = false;
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image1.jpg', '/images/image2.jpg', '/albums/image3.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl a single path without trailing slash', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
});
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl a single path without recursion', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/subfolder/image1.jpg': '',
|
|
||||||
'/photos/subfolder/image2.jpg': '',
|
|
||||||
'/image1.jpg': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should crawl a single path with recursion', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/subfolder/image1.jpg': '',
|
|
||||||
'/photos/subfolder/image2.jpg': '',
|
|
||||||
'/image1.jpg': '',
|
|
||||||
});
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
options.recursive = true;
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers([
|
|
||||||
'/photos/image.jpg',
|
|
||||||
'/photos/subfolder/image1.jpg',
|
|
||||||
'/photos/subfolder/image2.jpg',
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should filter file extensions', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/image.txt': '',
|
|
||||||
'/photos/1': '',
|
|
||||||
});
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers(['/photos/image.jpg']);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should include photo and video extensions', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/image.jpeg': '',
|
|
||||||
'/photos/image.heic': '',
|
|
||||||
'/photos/image.heif': '',
|
|
||||||
'/photos/image.png': '',
|
|
||||||
'/photos/image.gif': '',
|
|
||||||
'/photos/image.tif': '',
|
|
||||||
'/photos/image.tiff': '',
|
|
||||||
'/photos/image.webp': '',
|
|
||||||
'/photos/image.dng': '',
|
|
||||||
'/photos/image.nef': '',
|
|
||||||
'/videos/video.mp4': '',
|
|
||||||
'/videos/video.mov': '',
|
|
||||||
'/videos/video.webm': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/', '/videos/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
|
|
||||||
expect(paths).toIncludeSameMembers([
|
|
||||||
'/photos/image.jpg',
|
|
||||||
'/photos/image.jpeg',
|
|
||||||
'/photos/image.heic',
|
|
||||||
'/photos/image.heif',
|
|
||||||
'/photos/image.png',
|
|
||||||
'/photos/image.gif',
|
|
||||||
'/photos/image.tif',
|
|
||||||
'/photos/image.tiff',
|
|
||||||
'/photos/image.webp',
|
|
||||||
'/photos/image.dng',
|
|
||||||
'/photos/image.nef',
|
|
||||||
'/videos/video.mp4',
|
|
||||||
'/videos/video.mov',
|
|
||||||
'/videos/video.webm',
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should check file extensions without case sensitivity', async () => {
|
|
||||||
mockfs({
|
|
||||||
'/photos/image.jpg': '',
|
|
||||||
'/photos/image.Jpg': '',
|
|
||||||
'/photos/image.jpG': '',
|
|
||||||
'/photos/image.JPG': '',
|
|
||||||
'/photos/image.jpEg': '',
|
|
||||||
'/photos/image.TIFF': '',
|
|
||||||
'/photos/image.tif': '',
|
|
||||||
'/photos/image.dng': '',
|
|
||||||
'/photos/image.NEF': '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const options = new CrawlOptionsDto();
|
|
||||||
options.pathsToCrawl = ['/photos/'];
|
|
||||||
const paths: string[] = await crawlService.crawl(options);
|
|
||||||
expect(paths).toIncludeSameMembers([
|
|
||||||
'/photos/image.jpg',
|
|
||||||
'/photos/image.Jpg',
|
|
||||||
'/photos/image.jpG',
|
|
||||||
'/photos/image.JPG',
|
|
||||||
'/photos/image.jpEg',
|
|
||||||
'/photos/image.TIFF',
|
|
||||||
'/photos/image.tif',
|
|
||||||
'/photos/image.dng',
|
|
||||||
'/photos/image.NEF',
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
mockfs.restore();
|
mockfs.restore();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('crawl', () => {
|
||||||
|
for (const { test, options, files } of tests) {
|
||||||
|
it(test, async () => {
|
||||||
|
mockfs(Object.fromEntries(Object.keys(files).map((file) => [file, ''])));
|
||||||
|
|
||||||
|
const actual = await sut.crawl(options);
|
||||||
|
const expected = Object.entries(files)
|
||||||
|
.filter((entry) => entry[1])
|
||||||
|
.map(([file]) => file);
|
||||||
|
|
||||||
|
expect(actual.sort()).toEqual(expected.sort());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,47 +1,28 @@
|
||||||
import { CrawlOptionsDto } from 'src/cores/dto/crawl-options-dto';
|
import { CrawlOptionsDto } from 'src/cores/dto/crawl-options-dto';
|
||||||
import { ACCEPTED_FILE_EXTENSIONS } from '../cores';
|
|
||||||
import { glob } from 'glob';
|
import { glob } from 'glob';
|
||||||
import * as fs from 'fs';
|
|
||||||
|
|
||||||
export class CrawlService {
|
export class CrawlService {
|
||||||
public async crawl(crawlOptions: CrawlOptionsDto): Promise<string[]> {
|
private readonly extensions!: string[];
|
||||||
const pathsToCrawl: string[] = crawlOptions.pathsToCrawl;
|
|
||||||
|
|
||||||
const directories: string[] = [];
|
constructor(image: string[], video: string[]) {
|
||||||
const crawledFiles: string[] = [];
|
this.extensions = image.concat(video).map((extension) => extension.replace('.', ''));
|
||||||
|
}
|
||||||
|
|
||||||
for await (const currentPath of pathsToCrawl) {
|
crawl(crawlOptions: CrawlOptionsDto): Promise<string[]> {
|
||||||
const stats = await fs.promises.stat(currentPath);
|
const { pathsToCrawl, exclusionPatterns, includeHidden } = crawlOptions;
|
||||||
if (stats.isFile() || stats.isSymbolicLink()) {
|
if (!pathsToCrawl) {
|
||||||
crawledFiles.push(currentPath);
|
return Promise.resolve([]);
|
||||||
} else {
|
|
||||||
directories.push(currentPath);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let searchPattern: string;
|
const base = pathsToCrawl.length === 1 ? pathsToCrawl[0] : `{${pathsToCrawl.join(',')}}`;
|
||||||
if (directories.length === 1) {
|
const extensions = `*{${this.extensions}}`;
|
||||||
searchPattern = directories[0];
|
|
||||||
} else if (directories.length === 0) {
|
|
||||||
return crawledFiles;
|
|
||||||
} else {
|
|
||||||
searchPattern = '{' + directories.join(',') + '}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (crawlOptions.recursive) {
|
return glob(`${base}/**/${extensions}`, {
|
||||||
searchPattern = searchPattern + '/**/';
|
absolute: true,
|
||||||
}
|
|
||||||
|
|
||||||
searchPattern = `${searchPattern}/*.{${ACCEPTED_FILE_EXTENSIONS.join(',')}}`;
|
|
||||||
|
|
||||||
const globbedFiles = await glob(searchPattern, {
|
|
||||||
nocase: true,
|
nocase: true,
|
||||||
nodir: true,
|
nodir: true,
|
||||||
ignore: crawlOptions.excludePatterns,
|
dot: includeHidden,
|
||||||
|
ignore: exclusionPatterns,
|
||||||
});
|
});
|
||||||
|
|
||||||
const returnedFiles = crawledFiles.concat(globbedFiles);
|
|
||||||
returnedFiles.sort();
|
|
||||||
return returnedFiles;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export * from './upload.service';
|
|
||||||
export * from './crawl.service';
|
export * from './crawl.service';
|
||||||
|
|
|
@ -46,7 +46,7 @@ export class SessionService {
|
||||||
|
|
||||||
// Check if server and api key are valid
|
// Check if server and api key are valid
|
||||||
const { data: userInfo } = await this.api.userApi.getMyUserInfo().catch((error) => {
|
const { data: userInfo } = await this.api.userApi.getMyUserInfo().catch((error) => {
|
||||||
throw new LoginError(`Failed to connect to the server: ${error.message}`);
|
throw new LoginError(`Failed to connect to server ${instanceUrl}: ${error.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`Logged in as ${userInfo.email}`);
|
console.log(`Logged in as ${userInfo.email}`);
|
||||||
|
@ -78,7 +78,7 @@ export class SessionService {
|
||||||
|
|
||||||
private async ping(): Promise<void> {
|
private async ping(): Promise<void> {
|
||||||
const { data: pingResponse } = await this.api.serverInfoApi.pingServer().catch((error) => {
|
const { data: pingResponse } = await this.api.serverInfoApi.pingServer().catch((error) => {
|
||||||
throw new Error(`Failed to connect to the server: ${error.message}`);
|
throw new Error(`Failed to connect to server ${this.api.apiConfiguration.instanceUrl}: ${error.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (pingResponse.res !== 'pong') {
|
if (pingResponse.res !== 'pong') {
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
import { UploadService } from './upload.service';
|
|
||||||
import axios from 'axios';
|
|
||||||
import FormData from 'form-data';
|
|
||||||
import { ApiConfiguration } from '../cores/api-configuration';
|
|
||||||
|
|
||||||
jest.mock('axios', () => jest.fn());
|
|
||||||
|
|
||||||
describe('UploadService', () => {
|
|
||||||
let uploadService: UploadService;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
const apiConfiguration = new ApiConfiguration('https://example.com/api', 'key');
|
|
||||||
|
|
||||||
uploadService = new UploadService(apiConfiguration);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should call axios', async () => {
|
|
||||||
const data = new FormData();
|
|
||||||
|
|
||||||
await uploadService.upload(data);
|
|
||||||
|
|
||||||
expect(axios).toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,65 +0,0 @@
|
||||||
import axios, { AxiosRequestConfig } from 'axios';
|
|
||||||
import FormData from 'form-data';
|
|
||||||
import { ApiConfiguration } from '../cores/api-configuration';
|
|
||||||
|
|
||||||
export class UploadService {
|
|
||||||
private readonly uploadConfig: AxiosRequestConfig<any>;
|
|
||||||
private readonly checkAssetExistenceConfig: AxiosRequestConfig<any>;
|
|
||||||
private readonly importConfig: AxiosRequestConfig<any>;
|
|
||||||
|
|
||||||
constructor(apiConfiguration: ApiConfiguration) {
|
|
||||||
this.uploadConfig = {
|
|
||||||
method: 'post',
|
|
||||||
maxRedirects: 0,
|
|
||||||
url: `${apiConfiguration.instanceUrl}/asset/upload`,
|
|
||||||
headers: {
|
|
||||||
'x-api-key': apiConfiguration.apiKey,
|
|
||||||
},
|
|
||||||
maxContentLength: Number.POSITIVE_INFINITY,
|
|
||||||
maxBodyLength: Number.POSITIVE_INFINITY,
|
|
||||||
};
|
|
||||||
|
|
||||||
this.importConfig = {
|
|
||||||
method: 'post',
|
|
||||||
maxRedirects: 0,
|
|
||||||
url: `${apiConfiguration.instanceUrl}/asset/import`,
|
|
||||||
headers: {
|
|
||||||
'x-api-key': apiConfiguration.apiKey,
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
maxContentLength: Number.POSITIVE_INFINITY,
|
|
||||||
maxBodyLength: Number.POSITIVE_INFINITY,
|
|
||||||
};
|
|
||||||
|
|
||||||
this.checkAssetExistenceConfig = {
|
|
||||||
method: 'post',
|
|
||||||
maxRedirects: 0,
|
|
||||||
url: `${apiConfiguration.instanceUrl}/asset/bulk-upload-check`,
|
|
||||||
headers: {
|
|
||||||
'x-api-key': apiConfiguration.apiKey,
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public checkIfAssetAlreadyExists(path: string, checksum: string) {
|
|
||||||
this.checkAssetExistenceConfig.data = JSON.stringify({ assets: [{ id: path, checksum: checksum }] });
|
|
||||||
|
|
||||||
// TODO: retry on 500 errors?
|
|
||||||
return axios(this.checkAssetExistenceConfig);
|
|
||||||
}
|
|
||||||
|
|
||||||
public upload(data: FormData) {
|
|
||||||
this.uploadConfig.data = data;
|
|
||||||
|
|
||||||
// TODO: retry on 500 errors?
|
|
||||||
return axios(this.uploadConfig);
|
|
||||||
}
|
|
||||||
|
|
||||||
public import(data: any) {
|
|
||||||
this.importConfig.data = data;
|
|
||||||
|
|
||||||
// TODO: retry on 500 errors?
|
|
||||||
return axios(this.importConfig);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"module": "Node16",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"target": "es2017",
|
"target": "es2022",
|
||||||
"moduleResolution": "node16",
|
"moduleResolution": "node16",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
|
5
docker/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
> [!CAUTION]
|
||||||
|
> Make sure to use the docker-compose.yml of the current release:
|
||||||
|
> https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
|
||||||
|
>
|
||||||
|
> The compose file on main may not be compatible with the latest release.
|
|
@ -1,30 +1,39 @@
|
||||||
|
# See:
|
||||||
|
# - https://immich.app/docs/developer/setup
|
||||||
|
# - https://immich.app/docs/developer/troubleshooting
|
||||||
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
name: immich-dev
|
||||||
|
|
||||||
|
x-server-build: &server-common
|
||||||
|
image: immich-server-dev:latest
|
||||||
|
build:
|
||||||
|
context: ../
|
||||||
|
dockerfile: server/Dockerfile
|
||||||
|
target: dev
|
||||||
|
volumes:
|
||||||
|
- ../server:/usr/src/app
|
||||||
|
- ${UPLOAD_LOCATION}/photos:/usr/src/app/upload
|
||||||
|
- /usr/src/app/node_modules
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=development
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 1048576
|
||||||
|
hard: 1048576
|
||||||
|
|
||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: immich-server-dev:latest
|
|
||||||
build:
|
|
||||||
context: ../server
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
target: builder
|
|
||||||
command: npm run start:debug immich
|
command: npm run start:debug immich
|
||||||
volumes:
|
<<: *server-common
|
||||||
- ../server:/usr/src/app
|
|
||||||
- ${UPLOAD_LOCATION}/photos:/usr/src/app/upload
|
|
||||||
- /usr/src/app/node_modules
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
ports:
|
ports:
|
||||||
- 3001:3001
|
- 3001:3001
|
||||||
- 9230:9230
|
- 9230:9230
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=development
|
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 1048576
|
|
||||||
hard: 1048576
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
|
@ -32,30 +41,13 @@ services:
|
||||||
|
|
||||||
immich-microservices:
|
immich-microservices:
|
||||||
container_name: immich_microservices
|
container_name: immich_microservices
|
||||||
image: immich-microservices:latest
|
command: npm run start:debug microservices
|
||||||
|
<<: *server-common
|
||||||
# extends:
|
# extends:
|
||||||
# file: hwaccel.yml
|
# file: hwaccel.yml
|
||||||
# service: hwaccel
|
# service: hwaccel
|
||||||
build:
|
|
||||||
context: ../server
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
target: builder
|
|
||||||
command: npm run start:debug microservices
|
|
||||||
volumes:
|
|
||||||
- ../server:/usr/src/app
|
|
||||||
- ${UPLOAD_LOCATION}/photos:/usr/src/app/upload
|
|
||||||
- /usr/src/app/node_modules
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
ports:
|
ports:
|
||||||
- 9231:9230
|
- 9231:9230
|
||||||
environment:
|
|
||||||
- NODE_ENV=development
|
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 1048576
|
|
||||||
hard: 1048576
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
- immich-server
|
- immich-server
|
||||||
|
@ -67,16 +59,11 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../web
|
context: ../web
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: dev
|
command: "node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000"
|
||||||
command: npm run dev --host
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
|
||||||
# Rename these values for svelte public interface
|
|
||||||
- PUBLIC_IMMICH_SERVER_URL=${IMMICH_SERVER_URL}
|
|
||||||
- PUBLIC_IMMICH_API_URL_EXTERNAL=${IMMICH_API_URL_EXTERNAL}
|
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 2283:3000
|
||||||
- 24678:24678
|
- 24678:24678
|
||||||
volumes:
|
volumes:
|
||||||
- ../web:/usr/src/app
|
- ../web:/usr/src/app
|
||||||
|
@ -121,11 +108,11 @@ services:
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: immich_redis
|
container_name: immich_redis
|
||||||
image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
|
image: redis:6.2-alpine@sha256:60e49e22fa5706cd8df7d5e0bc50ee9bab7c608039fa653c4d961014237cca46
|
||||||
|
|
||||||
database:
|
database:
|
||||||
container_name: immich_postgres
|
container_name: immich_postgres
|
||||||
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
image: postgres:14-alpine@sha256:6a0e35296341e676fe6bd8d236c72afffe2dfe3d7eb9c2405c0f3fc04500cd07
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
@ -137,22 +124,5 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
immich-proxy:
|
|
||||||
container_name: immich_proxy
|
|
||||||
image: immich-proxy-dev:latest
|
|
||||||
environment:
|
|
||||||
# Make sure these values get passed through from the env file
|
|
||||||
- IMMICH_SERVER_URL
|
|
||||||
- IMMICH_WEB_URL
|
|
||||||
build:
|
|
||||||
context: ../nginx
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
ports:
|
|
||||||
- 2283:8080
|
|
||||||
depends_on:
|
|
||||||
- immich-server
|
|
||||||
- immich-web
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
model-cache:
|
model-cache:
|
||||||
|
|
|
@ -1,23 +1,44 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
name: immich-prod
|
||||||
|
|
||||||
|
x-server-build: &server-common
|
||||||
|
image: immich-server:latest
|
||||||
|
build:
|
||||||
|
context: ../
|
||||||
|
dockerfile: server/Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ${UPLOAD_LOCATION}/photos:/usr/src/app/upload
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
restart: always
|
||||||
|
|
||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: immich-server:latest
|
command: [ "./start-server.sh" ]
|
||||||
build:
|
<<: *server-common
|
||||||
context: ../server
|
ports:
|
||||||
dockerfile: Dockerfile
|
- 2283:3001
|
||||||
command: ["./start-server.sh"]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
- typesense
|
- typesense
|
||||||
|
|
||||||
|
immich-microservices:
|
||||||
|
container_name: immich_microservices
|
||||||
|
command: [ "./start-microservices.sh" ]
|
||||||
|
<<: *server-common
|
||||||
|
# extends:
|
||||||
|
# file: hwaccel.yml
|
||||||
|
# service: hwaccel
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- database
|
||||||
|
- typesense
|
||||||
|
- immich-server
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
image: immich-machine-learning:latest
|
image: immich-machine-learning:latest
|
||||||
|
@ -25,45 +46,11 @@ services:
|
||||||
context: ../machine-learning
|
context: ../machine-learning
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
- model-cache:/cache
|
- model-cache:/cache
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
immich-microservices:
|
|
||||||
container_name: immich_microservices
|
|
||||||
image: immich-microservices:latest
|
|
||||||
# extends:
|
|
||||||
# file: hwaccel.yml
|
|
||||||
# service: hwaccel
|
|
||||||
build:
|
|
||||||
context: ../server
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
command: ["./start-microservices.sh"]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
|
||||||
- database
|
|
||||||
- immich-server
|
|
||||||
- typesense
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
immich-web:
|
|
||||||
container_name: immich_web
|
|
||||||
image: immich-web:latest
|
|
||||||
build:
|
|
||||||
context: ../web
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- immich-server
|
|
||||||
|
|
||||||
typesense:
|
typesense:
|
||||||
container_name: immich_typesense
|
container_name: immich_typesense
|
||||||
image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
|
image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
|
||||||
|
@ -73,17 +60,17 @@ services:
|
||||||
# remove this to get debug messages
|
# remove this to get debug messages
|
||||||
- GLOG_minloglevel=1
|
- GLOG_minloglevel=1
|
||||||
volumes:
|
volumes:
|
||||||
- tsdata:/data
|
- ${UPLOAD_LOCATION}/typesense:/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: immich_redis
|
container_name: immich_redis
|
||||||
image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
|
image: redis:6.2-alpine@sha256:60e49e22fa5706cd8df7d5e0bc50ee9bab7c608039fa653c4d961014237cca46
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
database:
|
database:
|
||||||
container_name: immich_postgres
|
container_name: immich_postgres
|
||||||
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
image: postgres:14-alpine@sha256:6a0e35296341e676fe6bd8d236c72afffe2dfe3d7eb9c2405c0f3fc04500cd07
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
@ -91,28 +78,8 @@ services:
|
||||||
POSTGRES_USER: ${DB_USERNAME}
|
POSTGRES_USER: ${DB_USERNAME}
|
||||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- ${UPLOAD_LOCATION}/postgres:/var/lib/postgresql/data
|
||||||
restart: always
|
|
||||||
|
|
||||||
immich-proxy:
|
|
||||||
container_name: immich_proxy
|
|
||||||
image: immich-proxy:latest
|
|
||||||
environment:
|
|
||||||
# Make sure these values get passed through from the env file
|
|
||||||
- IMMICH_SERVER_URL
|
|
||||||
- IMMICH_WEB_URL
|
|
||||||
build:
|
|
||||||
context: ../nginx
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
ports:
|
|
||||||
- 2283:8080
|
|
||||||
logging:
|
|
||||||
driver: none
|
|
||||||
depends_on:
|
|
||||||
- immich-server
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
|
||||||
model-cache:
|
model-cache:
|
||||||
tsdata:
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ services:
|
||||||
immich-server:
|
immich-server:
|
||||||
image: immich-server-dev:latest
|
image: immich-server-dev:latest
|
||||||
build:
|
build:
|
||||||
context: ../server
|
context: ../
|
||||||
dockerfile: Dockerfile
|
dockerfile: server/Dockerfile
|
||||||
target: builder
|
target: dev
|
||||||
command: npm run test:e2e
|
command: npm run test:e2e
|
||||||
volumes:
|
volumes:
|
||||||
- ../server:/usr/src/app
|
- ../server:/usr/src/app
|
||||||
|
@ -23,7 +23,7 @@ services:
|
||||||
- database
|
- database
|
||||||
|
|
||||||
database:
|
database:
|
||||||
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
image: postgres:14-alpine@sha256:6a0e35296341e676fe6bd8d236c72afffe2dfe3d7eb9c2405c0f3fc04500cd07
|
||||||
command: -c fsync=off
|
command: -c fsync=off
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
|
@ -1,15 +1,27 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
#
|
||||||
|
# WARNING: Make sure to use the docker-compose.yml of the current release:
|
||||||
|
#
|
||||||
|
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
|
||||||
|
#
|
||||||
|
# The compose file on main may not be compatible with the latest release.
|
||||||
|
#
|
||||||
|
|
||||||
|
name: immich
|
||||||
|
|
||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
||||||
command: ["start.sh", "immich"]
|
command: [ "start.sh", "immich" ]
|
||||||
volumes:
|
volumes:
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
ports:
|
||||||
|
- 2283:3001
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
|
@ -22,7 +34,7 @@ services:
|
||||||
# extends:
|
# extends:
|
||||||
# file: hwaccel.yml
|
# file: hwaccel.yml
|
||||||
# service: hwaccel
|
# service: hwaccel
|
||||||
command: ["start.sh", "microservices"]
|
command: [ "start.sh", "microservices" ]
|
||||||
volumes:
|
volumes:
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
@ -43,13 +55,6 @@ services:
|
||||||
- .env
|
- .env
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
immich-web:
|
|
||||||
container_name: immich_web
|
|
||||||
image: ghcr.io/immich-app/immich-web:${IMMICH_VERSION:-release}
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
typesense:
|
typesense:
|
||||||
container_name: immich_typesense
|
container_name: immich_typesense
|
||||||
image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
|
image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
|
||||||
|
@ -64,12 +69,12 @@ services:
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: immich_redis
|
container_name: immich_redis
|
||||||
image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
|
image: redis:6.2-alpine@sha256:60e49e22fa5706cd8df7d5e0bc50ee9bab7c608039fa653c4d961014237cca46
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
database:
|
database:
|
||||||
container_name: immich_postgres
|
container_name: immich_postgres
|
||||||
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
image: postgres:14-alpine@sha256:6a0e35296341e676fe6bd8d236c72afffe2dfe3d7eb9c2405c0f3fc04500cd07
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
@ -80,16 +85,6 @@ services:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
immich-proxy:
|
|
||||||
container_name: immich_proxy
|
|
||||||
image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release}
|
|
||||||
ports:
|
|
||||||
- 2283:8080
|
|
||||||
depends_on:
|
|
||||||
- immich-server
|
|
||||||
- immich-web
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
model-cache:
|
model-cache:
|
||||||
|
|
24
docker/hwaccel-rkmpp.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
# Hardware acceleration for transcoding using RKMPP for Rockchip SOCs
|
||||||
|
# This is only needed if you want to use hardware acceleration for transcoding.
|
||||||
|
# Supported host OS is Ubuntu Jammy 22.04 with custom ffmpeg from ppa:liujianfeng1994/rockchip-multimedia
|
||||||
|
|
||||||
|
services:
|
||||||
|
hwaccel:
|
||||||
|
security_opt: # enables full access to /sys and /proc, still far better than privileged: true
|
||||||
|
- systempaths=unconfined
|
||||||
|
- apparmor=unconfined
|
||||||
|
group_add:
|
||||||
|
- video
|
||||||
|
devices:
|
||||||
|
- /dev/rga:/dev/rga
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
- /dev/dma_heap:/dev/dma_heap
|
||||||
|
- /dev/mpp_service:/dev/mpp_service
|
||||||
|
volumes:
|
||||||
|
- /usr/bin/ffmpeg:/usr/bin/ffmpeg_mpp:ro
|
||||||
|
- /lib/aarch64-linux-gnu:/lib/ffmpeg-mpp:ro
|
||||||
|
- /lib/aarch64-linux-gnu/libblas.so.3:/lib/ffmpeg-mpp/libblas.so.3:ro # symlink is resolved by mounting
|
||||||
|
- /lib/aarch64-linux-gnu/liblapack.so.3:/lib/ffmpeg-mpp/liblapack.so.3:ro # symlink is resolved by mounting
|
||||||
|
- /lib/aarch64-linux-gnu/pulseaudio/libpulsecommon-15.99.so:/lib/ffmpeg-mpp/libpulsecommon-15.99.so:ro
|
|
@ -33,8 +33,6 @@ To be concise, Immich can now read in the gallery files, register the path into
|
||||||
- Only new files that are added to the gallery will be detected.
|
- Only new files that are added to the gallery will be detected.
|
||||||
- Deleted and moved files will not be detected.
|
- Deleted and moved files will not be detected.
|
||||||
|
|
||||||
You can find more information on how to use the feature by reading the documentation [here](/docs/features/read-only-gallery).
|
|
||||||
|
|
||||||
## Memory feature
|
## Memory feature
|
||||||
|
|
||||||
This is considered a fun feature that the team and I wanted to build for so long, but we had to put it off because of the refactoring of the code base. The code base is now in a good enough form to circle back and add more exciting features.
|
This is considered a fun feature that the team and I wanted to build for so long, but we had to put it off because of the refactoring of the code base. The code base is now in a good enough form to circle back and add more exciting features.
|
||||||
|
|
|
@ -12,9 +12,9 @@ sidebar_position: 7
|
||||||
| ![cloud-cross](/img/cloud-off.svg) | Asset is only available locally and has not yet been backed up |
|
| ![cloud-cross](/img/cloud-off.svg) | Asset is only available locally and has not yet been backed up |
|
||||||
| ![cloud-done](/img/cloud-done.svg) | Asset was uploaded from this device and is now backed up in the cloud/server and still available in original on the device |
|
| ![cloud-done](/img/cloud-done.svg) | Asset was uploaded from this device and is now backed up in the cloud/server and still available in original on the device |
|
||||||
|
|
||||||
### How can I sync an existing directory with Immich's server?
|
### Can I add my existing photo library?
|
||||||
|
|
||||||
Immich doesn't have two-way synchronization ([yet](https://github.com/immich-app/immich/discussions/1006)), but the [command line tool](/docs/features/bulk-upload.md) can bulk upload items from a directory to Immich.
|
Yes, with an [external library](/docs/features/libraries.md).
|
||||||
|
|
||||||
### Why are only photos and not videos being uploaded to Immich?
|
### Why are only photos and not videos being uploaded to Immich?
|
||||||
|
|
||||||
|
|
|
@ -17,13 +17,13 @@ docker exec -t immich_postgres pg_dumpall -c -U postgres | gzip > "/path/to/back
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash title='Restore'
|
```bash title='Restore'
|
||||||
docker-compose down -v # CAUTION! Deletes all Immich data to start from scratch.
|
docker compose down -v # CAUTION! Deletes all Immich data to start from scratch.
|
||||||
docker-compose pull # Update to latest version of Immich (if desired)
|
docker compose pull # Update to latest version of Immich (if desired)
|
||||||
docker-compose create # Create Docker containers for Immich apps without running them.
|
docker compose create # Create Docker containers for Immich apps without running them.
|
||||||
docker start immich_postgres # Start Postgres server
|
docker start immich_postgres # Start Postgres server
|
||||||
sleep 10 # Wait for Postgres server to start up
|
sleep 10 # Wait for Postgres server to start up
|
||||||
gunzip < "/path/to/backup/dump.sql.gz" | docker exec -i immich_postgres psql -U postgres -d immich # Restore Backup
|
gunzip < "/path/to/backup/dump.sql.gz" | docker exec -i immich_postgres psql -U postgres -d immich # Restore Backup
|
||||||
docker-compose up -d # Start remainder of Immich apps
|
docker compose up -d # Start remainder of Immich apps
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that for the database restore to proceed properly, it requires a completely fresh install (i.e. the Immich server has never run since creating the Docker containers). If the Immich app has run, Postgres conflicts may be encountered upon database restoration (relation already exists, violated foreign key constraints, multiple primary keys, etc.).
|
Note that for the database restore to proceed properly, it requires a completely fresh install (i.e. the Immich server has never run since creating the Docker containers). If the Immich app has run, Postgres conflicts may be encountered upon database restoration (relation already exists, violated foreign key constraints, multiple primary keys, etc.).
|
||||||
|
|
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 501 KiB |
|
@ -1,21 +1,6 @@
|
||||||
# Reverse Proxy
|
# Reverse Proxy
|
||||||
|
|
||||||
When deploying Immich it is important to understand that a reverse proxy is required in front of the server and web container. The reverse proxy acts as an intermediary between the user and container, forwarding requests to the correct container based on the URL path.
|
Users can deploy a custom reverse proxy that forwards requests to Immich. This way, the reverse proxy can handle TLS termination, load balancing, or other advanced features. All reverse proxies between Immich and the user must forward all headers and set the `Host`, `X-Forwarded-Host`, `X-Forwarded-Proto` and `X-Forwarded-For` headers to their appropriate values. Additionally, your reverse proxy should allow for big enough uploads. By following these practices, you ensure that all custom reverse proxies are fully compatible with Immich.
|
||||||
|
|
||||||
## Default Reverse Proxy
|
|
||||||
|
|
||||||
Immich provides a default nginx reverse proxy preconfigured to perform the correct routing and set the necessary headers for the server and web container to use. These headers are crucial to redirect to the correct URL and determine the client's IP address.
|
|
||||||
|
|
||||||
## Using a Different Reverse Proxy
|
|
||||||
|
|
||||||
While the reverse proxy provided by Immich works well for basic deployments, some users may want to use a different reverse proxy. Fortunately, Immich is flexible enough to accommodate different reverse proxies. Users can either:
|
|
||||||
|
|
||||||
1. Add another reverse proxy on top of Immich's reverse proxy
|
|
||||||
2. Completely replace the default reverse proxy
|
|
||||||
|
|
||||||
## Adding a Custom Reverse Proxy
|
|
||||||
|
|
||||||
Users can deploy a custom reverse proxy that forwards requests to Immich's reverse proxy. This way, the new reverse proxy can handle TLS termination, load balancing, or other advanced features, while still delegating routing decisions to Immich's reverse proxy. All reverse proxies between Immich and the user must forward all headers and set the `Host`, `X-Forwarded-Host`, `X-Forwarded-Proto` and `X-Forwarded-For` headers to their appropriate values. Additionally, your reverse proxy should allow for big enough uploads. By following these practices, you ensure that all custom reverse proxies are fully compatible with Immich.
|
|
||||||
|
|
||||||
### Nginx example config
|
### Nginx example config
|
||||||
|
|
||||||
|
@ -43,7 +28,3 @@ server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Replacing the Default Reverse Proxy
|
|
||||||
|
|
||||||
Replacing Immich's default reverse proxy is an advanced deployment and support may be limited. When replacing Immich's default proxy it is important to ensure that requests to `/api/*` are routed to the server container and all other requests to the web container. Additionally, the previously mentioned headers should be configured accordingly. You may find our [nginx configuration file](https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template) a helpful reference.
|
|
||||||
|
|
|
@ -51,8 +51,7 @@ immich-admin list-users
|
||||||
{
|
{
|
||||||
id: 'e65e6f88-2a30-4dbe-8dd9-1885f4889b53',
|
id: 'e65e6f88-2a30-4dbe-8dd9-1885f4889b53',
|
||||||
email: 'immich@example.com.com',
|
email: 'immich@example.com.com',
|
||||||
firstName: 'Immich',
|
name: 'Immich Admin',
|
||||||
lastName: 'Admin',
|
|
||||||
storageLabel: 'admin',
|
storageLabel: 'admin',
|
||||||
externalPath: null,
|
externalPath: null,
|
||||||
profileImagePath: 'upload/profile/e65e6f88-2a30-4dbe-8dd9-1885f4889b53/e65e6f88-2a30-4dbe-8dd9-1885f4889b53.jpg',
|
profileImagePath: 'upload/profile/e65e6f88-2a30-4dbe-8dd9-1885f4889b53/e65e6f88-2a30-4dbe-8dd9-1885f4889b53.jpg',
|
||||||
|
|
|
@ -34,7 +34,7 @@ The web app is a [TypeScript](https://www.typescriptlang.org/) project that uses
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
|
|
||||||
The CLI is a [TypeScript](https://www.typescriptlang.org/) project that parses command line arguments to programmatically upload/import assets to an Immich server. See [Bulk Upload](/docs/features/bulk-upload.md) for more information about its usage.
|
The Immich CLI is an [npm](https://www.npmjs.com/) package that lets users control their Immich instance from the command line. It uses the API to perform various tasks, especially uploading assets. See the [CLI documentation](/docs/features/command-line-interface.md) for more information.
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ npm run typeorm:migrations:generate ./src/infra/<migration-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Check if the migration file makes sense.
|
2. Check if the migration file makes sense.
|
||||||
3. Move the migration file to folder `./src/infra/database/migrations` in your code editor.
|
3. Move the migration file to folder `./server/src/infra/migrations` in your code editor.
|
||||||
|
|
||||||
The server will automatically detect `*.ts` file changes and restart. Part of the server start-up process includes running any new migrations, so it will be applied immediately.
|
The server will automatically detect `*.ts` file changes and restart. Part of the server start-up process includes running any new migrations, so it will be applied immediately.
|
||||||
|
|
|
@ -17,6 +17,5 @@ Our [GitHub Repository](https://github.com/immich-app/immich) is a [monorepo](ht
|
||||||
| `machine-learning/` | Source code for the `immich-machine-learning` docker image |
|
| `machine-learning/` | Source code for the `immich-machine-learning` docker image |
|
||||||
| `misc/release/` | Scripts for version pumps and draft releases |
|
| `misc/release/` | Scripts for version pumps and draft releases |
|
||||||
| `mobile/` | Source code for the mobile app, both Android and iOS |
|
| `mobile/` | Source code for the mobile app, both Android and iOS |
|
||||||
| `nginx/` | Source code for the `immich-proxy` docker image |
|
|
||||||
| `server/` | Source code for the `immich-server` docker image |
|
| `server/` | Source code for the `immich-server` docker image |
|
||||||
| `web/` | Source code for the `immich-web` docker image |
|
| `web/` | Source code for the `web` |
|
||||||
|
|
|
@ -52,7 +52,7 @@ If you only want to do web development connected to an existing, remote backend,
|
||||||
3. Start the web development server
|
3. Start the web development server
|
||||||
|
|
||||||
```
|
```
|
||||||
PUBLIC_IMMICH_SERVER_URL=https://demo.immich.app/api npm run dev
|
IMMICH_SERVER_URL=https://demo.immich.app/api npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## IDE setup
|
## IDE setup
|
||||||
|
@ -61,9 +61,15 @@ PUBLIC_IMMICH_SERVER_URL=https://demo.immich.app/api npm run dev
|
||||||
|
|
||||||
Setting these in the IDE give a better developer experience, auto-formatting code on save, and providing instant feedback on lint issues.
|
Setting these in the IDE give a better developer experience, auto-formatting code on save, and providing instant feedback on lint issues.
|
||||||
|
|
||||||
|
### Dart Code Metris
|
||||||
|
|
||||||
|
The mobile app uses DCM (Dart Code Metrics) for linting and metrics calculation. Please refer to the [Getting Started](https://dcm.dev/docs/getting-started/#installation) page for more information on setting up DCM
|
||||||
|
|
||||||
|
Note: Activating the license is not required.
|
||||||
|
|
||||||
### VSCode
|
### VSCode
|
||||||
|
|
||||||
Install `Flutter`, `Prettier`, `ESLint` and `Svelte` extensions.
|
Install `Flutter`, `DCM`, `Prettier`, `ESLint` and `Svelte` extensions.
|
||||||
|
|
||||||
in User `settings.json` (`cmd + shift + p` and search for `Open User Settings JSON`) add the following:
|
in User `settings.json` (`cmd + shift + p` and search for `Open User Settings JSON`) add the following:
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,6 @@ The backend has an end-to-end test suite that can be called with `npm run test:e
|
||||||
|
|
||||||
Note that there is a bug in nodejs <20.8 that causes segmentation faults when running these tests. If you run into segfaults, ensure you are using at least version 20.8.
|
Note that there is a bug in nodejs <20.8 that causes segmentation faults when running these tests. If you run into segfaults, ensure you are using at least version 20.8.
|
||||||
|
|
||||||
To perform a full e2e test, you need to run e2e tests inside docker. The easiest way to do that is to run `make test-e2e` in the root directory. This will build and start a docker-compose consisting of the server, microservices, and a postgres database. It will then perfom the tests and exit.
|
To perform a full e2e test, you need to run e2e tests inside docker. The easiest way to do that is to run `make test-e2e` in the root directory. This will build and start a docker-compose consisting of the server, microservices, and a postgres database. It will then perform the tests and exit.
|
||||||
|
|
||||||
If you manually install the dependencies (see the DOCKERFILE) on your development machine, you can also run the full e2e tests manually by setting the `IMMICH_RUN_ALL_TESTS` environment value to true, i.e. `IMMICH_RUN_ALL_TESTS=true npm run test:e2e`.
|
If you manually install the dependencies (see the DOCKERFILE) on your development machine, you can also run the full e2e tests manually by setting the `IMMICH_RUN_ALL_TESTS` environment value to true, i.e. `IMMICH_RUN_ALL_TESTS=true npm run test:e2e`.
|
||||||
|
|
15
docs/docs/developer/troubleshooting.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Troubleshooting
|
||||||
|
|
||||||
|
:::tip
|
||||||
|
A great option to get assistance with troubleshooting is to join our [Discord](https://discord.gg/D8JsnBEuKb) server, where we have a dedicated channel for `#contributing`.
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Known Issues
|
||||||
|
|
||||||
|
### Running on Windows
|
||||||
|
|
||||||
|
Running Immich on Windows can be frustrating and there are lots of ways it can go wrong. Where possible we recommend using Docker on Linux. However, several people have had success running Immich on Windows using Docker via WSL2.
|
||||||
|
|
||||||
|
### NTFS Mounted Volumes
|
||||||
|
|
||||||
|
The docker-compose.dev.yml and docker-compose.prod.yml use volume mounts for the postgres database. On start-up, postgres will try to `chown` the data directory, but fail. See [this post](https://forums.docker.com/t/data-directory-var-lib-postgresql-data-pgdata-has-wrong-ownership/17963/24) for more information about this issue and possible solutions.
|
|
@ -1,177 +0,0 @@
|
||||||
# Bulk Upload (Using the CLI)
|
|
||||||
|
|
||||||
You can use the CLI to upload an existing gallery to the Immich server
|
|
||||||
|
|
||||||
[Immich CLI Repository](https://github.com/immich-app/CLI)
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
- Node.js 16 or above
|
|
||||||
- Npm
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm i -g immich
|
|
||||||
```
|
|
||||||
|
|
||||||
Pre-installed on the `immich-server` container and can be easily accessed through
|
|
||||||
|
|
||||||
```
|
|
||||||
immich
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
| Parameter | Description |
|
|
||||||
| ---------------- | ------------------------------------------------------------------- |
|
|
||||||
| --yes / -y | Assume yes on all interactive prompts |
|
|
||||||
| --recursive / -r | Include subfolders |
|
|
||||||
| --delete / -da | Delete local assets after upload |
|
|
||||||
| --key / -k | User's API key |
|
|
||||||
| --server / -s | Immich's server address |
|
|
||||||
| --threads / -t | Number of threads to use (Default 5) |
|
|
||||||
| --album/ -al | Create albums for assets based on the parent folder or a given name |
|
|
||||||
| --import/ -i | Import gallery (assets are not uploaded) |
|
|
||||||
|
|
||||||
## Quick Start
|
|
||||||
|
|
||||||
Specify user's credential, Immich's server address and port and the directory you would like to upload videos/photos from.
|
|
||||||
|
|
||||||
```
|
|
||||||
immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api file1.jpg file2.jpg
|
|
||||||
```
|
|
||||||
|
|
||||||
By default, subfolders are not included. To upload a directory including subfolder, use the --recursive option:
|
|
||||||
|
|
||||||
```
|
|
||||||
immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/
|
|
||||||
```
|
|
||||||
|
|
||||||
### Obtain the API Key
|
|
||||||
|
|
||||||
The API key can be obtained in the user setting panel on the web interface.
|
|
||||||
|
|
||||||
![Obtain Api Key](./img/obtain-api-key.png)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Run via Docker
|
|
||||||
|
|
||||||
You can run the CLI inside of a docker container to avoid needing to install anything.
|
|
||||||
|
|
||||||
:::caution Running inside Docker
|
|
||||||
Be aware that as this runs inside a container, you need to mount the folder from which you want to import into the container.
|
|
||||||
:::
|
|
||||||
|
|
||||||
```bash title="Upload current directory"
|
|
||||||
cd /DIRECTORY/WITH/IMAGES
|
|
||||||
docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Upload target directory"
|
|
||||||
docker run -it --rm -v "/DIRECTORY/WITH/IMAGES:/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Create an alias"
|
|
||||||
alias immich='docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest'
|
|
||||||
immich upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api
|
|
||||||
```
|
|
||||||
|
|
||||||
:::tip Internal networking
|
|
||||||
If you are running the CLI container on the same machine as your Immich server, you may not be able to reach the external address. In that case, try the following steps:
|
|
||||||
|
|
||||||
1. Find the internal Docker network used by Immich via `docker network ls`.
|
|
||||||
2. Adapt the above command to pass the `--network <immich_network>` argument to `docker run`, substituting `<immich_network>` with the result from step 1.
|
|
||||||
3. Use `--server http://immich-server:3001` for the upload command instead of the external address.
|
|
||||||
|
|
||||||
```bash title="Upload to internal address"
|
|
||||||
docker run --network immich_default -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://immich-server:3001
|
|
||||||
```
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
### Run from source
|
|
||||||
|
|
||||||
```bash title="Clone Repository"
|
|
||||||
git clone https://github.com/immich-app/CLI
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Install dependencies"
|
|
||||||
npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Build the project"
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Run the command"
|
|
||||||
node bin/index.js upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive your/asset/directory
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Importing existing libraries
|
|
||||||
|
|
||||||
If you do not wish to upload files into the server, existing files can be imported into the immich gallery through the use of the `--import` flag.
|
|
||||||
|
|
||||||
```
|
|
||||||
immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/ --import
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api file1.jpg file2.jpg --import
|
|
||||||
```
|
|
||||||
|
|
||||||
The `immich-server` and `immich-microservices` containers must be able to access the files, or directories at the path referenced in the command. The directories referenced must be set under a user's `External Path` setting. More detailed instructions can be found [here](/docs/features/read-only-gallery).
|
|
||||||
|
|
||||||
:::tip Matching volume references
|
|
||||||
The import command is most easily run on the machine running the immich service, as the path to the files on the machine running the command and the server much match identically.
|
|
||||||
|
|
||||||
If you are running immich within docker, the volume pointing to your existing library should be identical with your host machine.
|
|
||||||
|
|
||||||
```diff title="docker-compose.yml"
|
|
||||||
immich-server:
|
|
||||||
container_name: immich_server
|
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
||||||
command: [ "start.sh", "immich" ]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
+ - /path/to/media:/path/to/media
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- database
|
|
||||||
- typesense
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
immich-microservices:
|
|
||||||
container_name: immich_microservices
|
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
||||||
command: [ "start.sh", "microservices" ]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
+ - /path/to/media:/path/to/media
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- database
|
|
||||||
- typesense
|
|
||||||
restart: always
|
|
||||||
```
|
|
||||||
|
|
||||||
The proper command for above would be as shown below. You should have access to `/path/to/media` exactly on the environment the CLI command is being run on
|
|
||||||
|
|
||||||
```
|
|
||||||
immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive /path/to/media --import
|
|
||||||
```
|
|
||||||
|
|
||||||
If you are running the import using the docker command, please note that the volumes should point to the `/path/to/media` exactly on the environment the CLI command is being run on
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run -it --rm -v "/path/to/media:/path/to/media" ghcr.io/immich-app/immich-cli:latest upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive /path/to/media --import
|
|
||||||
```
|
|
||||||
|
|
||||||
:::
|
|
139
docs/docs/features/command-line-interface.md
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
# The Immich CLI
|
||||||
|
|
||||||
|
Immich has a CLI that allows you to perform certain actions from the command line. This CLI replaces the [legacy CLI](https://github.com/immich-app/CLI) that was previously available. The CLI is hosted in the [cli folder of the the main Immich github repository](https://github.com/immich-app/immich/tree/main/cli).
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Upload photos and videos to Immich
|
||||||
|
- Check server version
|
||||||
|
|
||||||
|
More features are planned for the future.
|
||||||
|
|
||||||
|
:::tip Google Photos Takeout
|
||||||
|
If you are looking to import your Google Photos takeout, we recommed this community maintained tool [immich-go](https://github.com/simulot/immich-go)
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Node.js 20.0 or above
|
||||||
|
- Npm
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i -g @immich/cli
|
||||||
|
```
|
||||||
|
|
||||||
|
NOTE: if you previously installed the legacy CLI, you will need to uninstall it first:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm uninstall -g immich
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
immich
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
Usage: immich [options] [command]
|
||||||
|
|
||||||
|
Immich command line interface
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display help for command
|
||||||
|
|
||||||
|
Commands:
|
||||||
|
upload [options] [paths...] Upload assets
|
||||||
|
server-info Display server information
|
||||||
|
login-key [instanceUrl] [apiKey] Login using an API key
|
||||||
|
logout Remove stored credentials
|
||||||
|
help [command] display help for command
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
The upload command supports the following options:
|
||||||
|
|
||||||
|
```
|
||||||
|
Usage: immich upload [options] [paths...]
|
||||||
|
|
||||||
|
Upload assets
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
paths One or more paths to assets to be uploaded
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-r, --recursive Recursive (default: false, env: IMMICH_RECURSIVE)
|
||||||
|
-i, --ignore [paths...] Paths to ignore (env: IMMICH_IGNORE_PATHS)
|
||||||
|
-h, --skip-hash Don't hash files before upload (default: false, env: IMMICH_SKIP_HASH)
|
||||||
|
-a, --album Automatically create albums based on folder name (default: false, env: IMMICH_AUTO_CREATE_ALBUM)
|
||||||
|
-n, --dry-run Don't perform any actions, just show what will be done (default: false, env: IMMICH_DRY_RUN)
|
||||||
|
--delete Delete local assets after upload (env: IMMICH_DELETE_ASSETS)
|
||||||
|
--help display help for command
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the above options can read from environment variables as well.
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
You begin by authenticating to your Immich server.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich login-key [instanceUrl] [apiKey]
|
||||||
|
```
|
||||||
|
|
||||||
|
For instance,
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich login-key http://192.168.1.216:2283/api HFEJ38DNSDUEG
|
||||||
|
```
|
||||||
|
|
||||||
|
This will store your credentials in a file in your home directory. Please keep the file secure, either by performing the logout command after you are done, or deleting it manually.
|
||||||
|
|
||||||
|
Once you are authenticated, you can upload assets to your Immich server.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload file1.jpg file2.jpg
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, subfolders are not included. To upload a directory including subfolder, use the --recursive option:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are unsure what will happen, you can use the `--dry-run` option to see what would happen without actually performing any actions.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --dry-run --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, the upload command will hash the files before uploading them. This is to avoid uploading the same file multiple times. If you are sure that the files are unique, you can skip this step by passing the `--skip-hash` option. Note that Immich always performs its own deduplication through hashing, so this is merely a performance consideration. If you have good bandwidth it might be faster to skip hashing.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --skip-hash --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
You can automatically create albums based on the folder name by passing the `--album` option. This will automatically create albums for each uploaded asset based on the name of the folder they are in.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --album --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
It is possible to skip assets matching a glob pattern by passing the `--ignore` option. See [the library documentation](docs/features/libraries.md) on how to use glob patterns. You can add several exclusion patterns if needed.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --ignore **/Raw/** --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
immich upload --ignore **/Raw/** **/*.tif --recursive directory/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Obtain the API Key
|
||||||
|
|
||||||
|
The API key can be obtained in the user setting panel on the web interface.
|
||||||
|
|
||||||
|
![Obtain Api Key](./img/obtain-api-key.png)
|
|
@ -1,5 +1,7 @@
|
||||||
# Facial Recognition
|
# Facial Recognition
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
Immich recognizes faces in your photos and videos and groups them together. You can then assign names to the faces and search for them.
|
Immich recognizes faces in your photos and videos and groups them together. You can then assign names to the faces and search for them.
|
||||||
|
|
||||||
The list of people is shown in the Explore page.
|
The list of people is shown in the Explore page.
|
||||||
|
@ -13,3 +15,16 @@ Upon clicking on a person, a list of assets that contain their face will be show
|
||||||
The asset detail view will also show the faces that are recognized in the asset.
|
The asset detail view will also show the faces that are recognized in the asset.
|
||||||
|
|
||||||
<img src={require('./img/facial-recognition-3.png').default} title='Facial Recognition 3' />
|
<img src={require('./img/facial-recognition-3.png').default} title='Facial Recognition 3' />
|
||||||
|
|
||||||
|
## Actions
|
||||||
|
|
||||||
|
Additional actions you can do with a detected person are:
|
||||||
|
|
||||||
|
- Change the feature face photo of the person
|
||||||
|
- Set date of birth
|
||||||
|
- Merge two or more detected faces into one person
|
||||||
|
- Hide face
|
||||||
|
|
||||||
|
It can be found from the app bar when you access the detial view of a person
|
||||||
|
|
||||||
|
<img src={require('./img/facial-recognition-4.png').default} title='Facial Recognition 4' width="70%"/>
|
||||||
|
|
BIN
docs/docs/features/img/facial-recognition-4.png
Normal file
After Width: | Height: | Size: 416 KiB |
|
@ -75,7 +75,7 @@ Some basic examples:
|
||||||
- `*.tif` will exclude all files with the extension `.tif`
|
- `*.tif` will exclude all files with the extension `.tif`
|
||||||
- `hidden.jpg` will exclude all files named `hidden.jpg`
|
- `hidden.jpg` will exclude all files named `hidden.jpg`
|
||||||
- `**/Raw/**` will exclude all files in any directory named `Raw`
|
- `**/Raw/**` will exclude all files in any directory named `Raw`
|
||||||
- `*.(tif,jpg)` will exclude all files with the extension `.tif` or `.jpg`
|
- `*.{tif,jpg}` will exclude all files with the extension `.tif` or `.jpg`
|
||||||
|
|
||||||
### Nightly job
|
### Nightly job
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ There is an automatic job that's run once a day and refreshes all modified files
|
||||||
|
|
||||||
Let's show a concrete example where we add an existing gallery to Immich. Here, we have the following folders we want to add:
|
Let's show a concrete example where we add an existing gallery to Immich. Here, we have the following folders we want to add:
|
||||||
|
|
||||||
- `/home/user/old-pics`: a folder contining childhood photos.
|
- `/home/user/old-pics`: a folder containing childhood photos.
|
||||||
- `/mnt/nas/christmas-trip`: photos from a christmas trip. The subfolder `/mnt/nas/christmas-trip/Raw` contains the raw files directly from the DSLR. We don't want to import the raw files to Immich
|
- `/mnt/nas/christmas-trip`: photos from a christmas trip. The subfolder `/mnt/nas/christmas-trip/Raw` contains the raw files directly from the DSLR. We don't want to import the raw files to Immich
|
||||||
- `/mnt/media/videos`: Videos from the same christmas trip.
|
- `/mnt/media/videos`: Videos from the same christmas trip.
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
import MobileAppDownload from '../partials/_mobile-app-download.md';
|
import MobileAppDownload from '../partials/_mobile-app-download.md';
|
||||||
import MobileAppLogin from '../partials/_mobile-app-login.md';
|
import MobileAppLogin from '../partials/_mobile-app-login.md';
|
||||||
import MobileAppBackup from '../partials/_mobile-app-login.md';
|
import MobileAppBackup from '../partials/_mobile-app-backup.md';
|
||||||
|
|
||||||
# Mobile App
|
# Mobile App
|
||||||
|
|
||||||
:::tip
|
|
||||||
To upload from other devices, try using the [Bulk Upload CLI](/docs/features/bulk-upload.md).
|
|
||||||
:::
|
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
<MobileAppDownload />
|
<MobileAppDownload />
|
||||||
|
|
|
@ -1,97 +0,0 @@
|
||||||
# Read-only Gallery [Deprecated]
|
|
||||||
|
|
||||||
:::caution
|
|
||||||
|
|
||||||
This feature is being deprecated in favor of [Libraries](/docs/features/libraries.md).
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
## Overview
|
|
||||||
|
|
||||||
This feature enables users to use an existing gallery without uploading the assets to Immich.
|
|
||||||
|
|
||||||
Upon syncing the file information, it will be read by Immich to generate supported files.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
:::tip Example scenario
|
|
||||||
|
|
||||||
On the VM/system that Immich is running, I have 2 galleries that I want to use with Immich.
|
|
||||||
|
|
||||||
- My gallery is stored at `/mnt/media/precious-memory`
|
|
||||||
- My wife's gallery is stored at `/mnt/media/childhood-memory`
|
|
||||||
|
|
||||||
We will use those values in the steps below.
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
### Mount the gallery to the containers.
|
|
||||||
|
|
||||||
`immich-server` and `immich-microservices` containers will need access to the gallery. Mount the directory path as in the example below
|
|
||||||
|
|
||||||
```diff title="docker-compose.yml"
|
|
||||||
immich-server:
|
|
||||||
container_name: immich_server
|
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
||||||
command: [ "start.sh", "immich" ]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
+ - /mnt/media/precious-memory:/mnt/media/precious-memory:ro
|
|
||||||
+ - /mnt/media/childhood-memory:/mnt/media/childhood-memory:ro
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- database
|
|
||||||
- typesense
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
immich-microservices:
|
|
||||||
container_name: immich_microservices
|
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
|
||||||
command: [ "start.sh", "microservices" ]
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
|
||||||
+ - /mnt/media/precious-memory:/mnt/media/precious-memory:ro
|
|
||||||
+ - /mnt/media/childhood-memory:/mnt/media/childhood-memory:ro
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- database
|
|
||||||
- typesense
|
|
||||||
restart: always
|
|
||||||
```
|
|
||||||
|
|
||||||
:::tip
|
|
||||||
Internal and external path have to be identical.
|
|
||||||
:::
|
|
||||||
|
|
||||||
_Remember to bring the container down/up to register the changes. Make sure you can see the mounted path in the container._
|
|
||||||
|
|
||||||
### Register the path for the user.
|
|
||||||
|
|
||||||
This action is done by the admin of the instance.
|
|
||||||
|
|
||||||
- Navigate to `Administration > Users` page on the web.
|
|
||||||
- Click on the user edit button.
|
|
||||||
- Add the gallery path to the `External Path` field for the corresponding user and confirm the changes.
|
|
||||||
|
|
||||||
<img src={require('./img/me.png').default} width='33%' title='My Account Storage Path' />
|
|
||||||
|
|
||||||
<img src={require('./img/my-wife.png').default} width='33%' title='My Wifes Account Storage Path' />
|
|
||||||
|
|
||||||
### Sync with the CLI tool.
|
|
||||||
|
|
||||||
- Install or update the [CLI Tool](/docs/features/bulk-upload.md). The import feature is supported from version `v0.39.0` of the CLI
|
|
||||||
- Run the command below to sync the gallery with Immich.
|
|
||||||
|
|
||||||
```bash title="Import my gallery"
|
|
||||||
immich upload --key <my-api-key> --server http://my-server-ip:2283/api /mnt/media/precious-memory --recursive --import
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash title="Import my wife gallery"
|
|
||||||
immich upload --key <my-wife-api-key> --server http://my-server-ip:2283/api /mnt/media/childhood-memory --recursive --import
|
|
||||||
```
|
|
||||||
|
|
||||||
The `--import` flag will tell Immich to import the files by path instead of uploading them.
|
|
|
@ -14,8 +14,6 @@ docker exec -it <id or name> <command> # attach to a container with a c
|
||||||
docker exec -it immich_server sh
|
docker exec -it immich_server sh
|
||||||
docker exec -it immich_microservices sh
|
docker exec -it immich_microservices sh
|
||||||
docker exec -it immich_machine_learning sh
|
docker exec -it immich_machine_learning sh
|
||||||
docker exec -it immich_web sh
|
|
||||||
docker exec -it immich_proxy sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Logs
|
## Logs
|
||||||
|
@ -26,8 +24,6 @@ docker logs <id or name> # see the logs for a specific container (by id
|
||||||
docker logs immich_server
|
docker logs immich_server
|
||||||
docker logs immich_microservices
|
docker logs immich_microservices
|
||||||
docker logs immich_machine_learning
|
docker logs immich_machine_learning
|
||||||
docker logs immich_web
|
|
||||||
docker logs immich_proxy
|
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip Follow a log
|
:::tip Follow a log
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
To alleviate [performance issues on low-memory systems](/docs/FAQ.md#why-is-immich-slow-on-low-memory-systems-like-the-raspberry-pi) like the Raspberry Pi, you may also host Immich's machine-learning container on a more powerful system (e.g. your laptop or desktop computer):
|
To alleviate [performance issues on low-memory systems](/docs/FAQ.md#why-is-immich-slow-on-low-memory-systems-like-the-raspberry-pi) like the Raspberry Pi, you may also host Immich's machine-learning container on a more powerful system (e.g. your laptop or desktop computer):
|
||||||
|
|
||||||
- Set `IMMICH_MACHINE_LEARNING_URL` to point to the designated ML system, e.g. `http://workstation:3003`.
|
- Set the URL in Machine Learning Settings on the Admin Settings page to point to the designated ML system, e.g. `http://workstation:3003`.
|
||||||
- Copy the following `docker-compose.yml` to your ML system.
|
- Copy the following `docker-compose.yml` to your ML system.
|
||||||
- Start the container by running `docker-compose up -d` or `docker compose up -d` (depending on your Docker version).
|
- Start the container by running `docker-compose up -d` or `docker compose up -d` (depending on your Docker version).
|
||||||
|
|
||||||
|
|
42
docs/docs/guides/python-file-upload.md
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Python File Upload
|
||||||
|
|
||||||
|
```python
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import os
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
API_KEY = 'YOUR_API_KEY' # replace with a valid api key
|
||||||
|
BASE_URL = 'http://127.0.0.1:2283/api' # replace as needed
|
||||||
|
|
||||||
|
|
||||||
|
def upload(file):
|
||||||
|
stats = os.stat(file)
|
||||||
|
|
||||||
|
headers = {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'x-api-key': API_KEY
|
||||||
|
}
|
||||||
|
|
||||||
|
data = {
|
||||||
|
'deviceAssetId': f'{file}-{stats.st_mtime}',
|
||||||
|
'deviceId': 'python',
|
||||||
|
'fileCreatedAt': datetime.fromtimestamp(stats.st_mtime),
|
||||||
|
'fileModifiedAt': datetime.fromtimestamp(stats.st_mtime),
|
||||||
|
'isFavorite': 'false',
|
||||||
|
}
|
||||||
|
|
||||||
|
files = {
|
||||||
|
'assetData': open(file, 'rb')
|
||||||
|
}
|
||||||
|
|
||||||
|
response = requests.post(
|
||||||
|
f'{BASE_URL}/asset/upload', headers=headers, data=data, files=files)
|
||||||
|
|
||||||
|
print(response.json())
|
||||||
|
# {'id': 'ef96f635-61c7-4639-9e60-61a11c4bbfba', 'duplicate': False}
|
||||||
|
|
||||||
|
|
||||||
|
upload('./test.jpg')
|
||||||
|
```
|
58
docs/docs/guides/remote-access.md
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# Remote Access
|
||||||
|
|
||||||
|
This page gives a few pointers on how to access your Immich instance from outside your LAN.
|
||||||
|
|
||||||
|
:::danger
|
||||||
|
Never forward port 2283 directly to the internet without additional configuration. This will expose the web interface via http to the internet, making you succeptible to [man in the middle](https://en.wikipedia.org/wiki/Man-in-the-middle_attack) attacks.
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Option 1: VPN to home network
|
||||||
|
|
||||||
|
You may use a VPN service to open an encrypted connection to your Immich instance. OpenVPN and Wireguard are two popular VPN solutions. Here is a guide on setting up VPN access to your server - [Pihole documentation](https://docs.pi-hole.net/guides/vpn/wireguard/overview/)
|
||||||
|
|
||||||
|
### Pros:
|
||||||
|
|
||||||
|
- Simple to set up and very secure.
|
||||||
|
- Single point of potential failure, i.e., the VPN software itself. Even if there is a zero-day vulnerability on Immich, you will not be at risk.
|
||||||
|
- Both Wireguard and OpenVPN are independently security-audited, so the risk of serious zero-day exploits are minimal.
|
||||||
|
|
||||||
|
### Cons:
|
||||||
|
|
||||||
|
- If you don't have a static IP address, you would need to set up a [Dynamic DNS](https://www.cloudflare.com/learning/dns/glossary/dynamic-dns/). [DuckDNS](https://www.duckdns.org/) is a free DDNS provider.
|
||||||
|
- VPN software needs to be installed and active on both server-side and client-side.
|
||||||
|
- Requires you to open a port on your router to your server.
|
||||||
|
|
||||||
|
## Option 2: Tailscale
|
||||||
|
|
||||||
|
If you are unable to open a port on your router for Wireguard or OpenVPN to your server, [Tailscale](https://tailscale.com/) is a good option. Tailscale mediates a peer-to-peer wireguard tunnel between your server and remote device, even if one or both of them are behind a [NAT firewall](https://en.wikipedia.org/wiki/Network_address_translation).
|
||||||
|
|
||||||
|
### Pros
|
||||||
|
|
||||||
|
- Minimal configuration needed on server and client sides.
|
||||||
|
- You are protected against zero-day vulnerabilities on Immich.
|
||||||
|
|
||||||
|
### Cons
|
||||||
|
|
||||||
|
- The Tailscale client usually needs to run as root on your devices and it increases the attack surface slightly compared to a minimal Wireguard server. e.g., an [RCE vulnerability](https://github.com/tailscale/tailscale/security/advisories/GHSA-vqp6-rc3h-83cp) was discovered in the Windows Tailscale client in November 2022.
|
||||||
|
- Tailscale is a paid service. However, there is a generous [free tier](https://tailscale.com/pricing/) that permits up to 3 users and up to 100 devices.
|
||||||
|
- Tailscale needs to be installed and running on both server-side and client-side.
|
||||||
|
|
||||||
|
## Option 3: Reverse Proxy
|
||||||
|
|
||||||
|
A reverse proxy is a service that sits between web servers and clients. A reverse proxy can either be hosted on the server itself or remotely. Clients can connect to the reverse proxy via https, and the proxy relays data to Immich. This setup makes most sense if you have your own domain and want to access your Immich instance just like any other website, from outside your LAN. You can also use a DDNS provider like DuckDNS or no-ip if you don't have a domain. This configuration allows the Immich Android and iphone apps to connect to your server without a VPN or tailscale app on the client side.
|
||||||
|
|
||||||
|
If you're hosting your own reverse proxy, [Nginx](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) is a great option. An example configuration for Nginx is provided [here](https://immich.app/docs/administration/reverse-proxy).
|
||||||
|
|
||||||
|
You'll also need your own certificate to authenticate https connections. If you're making Immich publicly accesible, [Let's Encrypt](https://letsencrypt.org/) can provide a free certificate for your domain and is the recommended option. Alternatively, a [self-signed certificate](https://en.wikipedia.org/wiki/Self-signed_certificate) allows you to encrypt your connection to Immich, but it raises a security warning on the client's browser.
|
||||||
|
|
||||||
|
A remote reverse proxy like [Cloudflare](https://www.cloudflare.com/learning/cdn/glossary/reverse-proxy/) increases security by hiding the server IP address, which makes targeted attacks like [DDoS](https://www.cloudflare.com/learning/ddos/what-is-a-ddos-attack/) harder.
|
||||||
|
|
||||||
|
### Pros
|
||||||
|
|
||||||
|
- No additional software needs to be installed client-side
|
||||||
|
- If you only need access to the web interface remotely, it is possible to set up access controls that shield you from zero-day vulnerabilities on Immich. [Cloudflare Access](https://www.cloudflare.com/zero-trust/products/access/) has a generous free tier.
|
||||||
|
|
||||||
|
### Cons
|
||||||
|
|
||||||
|
- Complex configuration
|
||||||
|
- Depending on your configuration, both the Immich web interface and API may be exposed to the internet. Immich is under very active developement and the existence of severe security vulnerabilities cannot be ruled out.
|
|
@ -17,6 +17,12 @@ The default configuration looks like this:
|
||||||
"targetAudioCodec": "aac",
|
"targetAudioCodec": "aac",
|
||||||
"targetResolution": "720",
|
"targetResolution": "720",
|
||||||
"maxBitrate": "0",
|
"maxBitrate": "0",
|
||||||
|
"bframes": -1,
|
||||||
|
"refs": 0,
|
||||||
|
"gopSize": 0,
|
||||||
|
"npl": 0,
|
||||||
|
"temporalAQ": false,
|
||||||
|
"cqMode": "auto",
|
||||||
"twoPass": false,
|
"twoPass": false,
|
||||||
"transcode": "required",
|
"transcode": "required",
|
||||||
"tonemap": "hable",
|
"tonemap": "hable",
|
||||||
|
@ -44,9 +50,15 @@ The default configuration looks like this:
|
||||||
"sidecar": {
|
"sidecar": {
|
||||||
"concurrency": 5
|
"concurrency": 5
|
||||||
},
|
},
|
||||||
|
"library": {
|
||||||
|
"concurrency": 5
|
||||||
|
},
|
||||||
"storageTemplateMigration": {
|
"storageTemplateMigration": {
|
||||||
"concurrency": 5
|
"concurrency": 5
|
||||||
},
|
},
|
||||||
|
"migration": {
|
||||||
|
"concurrency": 5
|
||||||
|
},
|
||||||
"thumbnailGeneration": {
|
"thumbnailGeneration": {
|
||||||
"concurrency": 5
|
"concurrency": 5
|
||||||
},
|
},
|
||||||
|
@ -55,16 +67,16 @@ The default configuration looks like this:
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"machineLearning": {
|
"machineLearning": {
|
||||||
"classification": {
|
|
||||||
"minScore": 0.7,
|
|
||||||
"enabled": true,
|
|
||||||
"modelName": "microsoft/resnet-50"
|
|
||||||
},
|
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"url": "http://immich-machine-learning:3003",
|
"url": "http://immich-machine-learning:3003",
|
||||||
|
"classification": {
|
||||||
|
"enabled": true,
|
||||||
|
"modelName": "microsoft/resnet-50",
|
||||||
|
"minScore": 0.9
|
||||||
|
},
|
||||||
"clip": {
|
"clip": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"modelName": "ViT-B-32::openai"
|
"modelName": "ViT-B-32__openai"
|
||||||
},
|
},
|
||||||
"facialRecognition": {
|
"facialRecognition": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
@ -74,6 +86,14 @@ The default configuration looks like this:
|
||||||
"minFaces": 1
|
"minFaces": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"map": {
|
||||||
|
"enabled": true,
|
||||||
|
"tileUrl": "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||||
|
},
|
||||||
|
"reverseGeocoding": {
|
||||||
|
"enabled": true,
|
||||||
|
"citiesFileOverride": "cities500"
|
||||||
|
},
|
||||||
"oauth": {
|
"oauth": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"issuerUrl": "",
|
"issuerUrl": "",
|
||||||
|
@ -96,8 +116,27 @@ The default configuration looks like this:
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
"webpSize": 250,
|
"webpSize": 250,
|
||||||
"jpegSize": 1440,
|
"jpegSize": 1440,
|
||||||
"quality": 90,
|
"quality": 80,
|
||||||
"colorspace": "p3"
|
"colorspace": "p3"
|
||||||
|
},
|
||||||
|
"newVersionCheck": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"trash": {
|
||||||
|
"enabled": true,
|
||||||
|
"days": 30
|
||||||
|
},
|
||||||
|
"theme": {
|
||||||
|
"customCss": ""
|
||||||
|
},
|
||||||
|
"library": {
|
||||||
|
"scan": {
|
||||||
|
"enabled": true,
|
||||||
|
"cronExpression": "0 0 * * *"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylesheets": {
|
||||||
|
"css": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -122,28 +122,6 @@ TYPESENSE_API_KEY=some-random-text
|
||||||
|
|
||||||
PUBLIC_LOGIN_PAGE_MESSAGE="My Family Photos and Videos Backup Server"
|
PUBLIC_LOGIN_PAGE_MESSAGE="My Family Photos and Videos Backup Server"
|
||||||
|
|
||||||
####################################################################################
|
|
||||||
# Alternative Service Addresses - Optional
|
|
||||||
#
|
|
||||||
# This is an advanced feature for users who may be running their immich services on different hosts.
|
|
||||||
# It will not change which address or port that services bind to within their containers, but it will change where other services look for their peers.
|
|
||||||
# Note: immich-microservices is bound to 3002, but no references are made
|
|
||||||
####################################################################################
|
|
||||||
|
|
||||||
IMMICH_WEB_URL=http://immich-web:3000
|
|
||||||
IMMICH_SERVER_URL=http://immich-server:3001
|
|
||||||
|
|
||||||
####################################################################################
|
|
||||||
# Alternative API's External Address - Optional
|
|
||||||
#
|
|
||||||
# This is an advanced feature used to control the public server endpoint returned to clients during Well-known discovery.
|
|
||||||
# You should only use this if you want mobile apps to access the immich API over a custom URL. Do not include trailing slash.
|
|
||||||
# NOTE: At this time, the web app will not be affected by this setting and will continue to use the relative path: /api
|
|
||||||
# Examples: http://localhost:3001, http://immich-api.example.com, etc
|
|
||||||
####################################################################################
|
|
||||||
|
|
||||||
#IMMICH_API_URL_EXTERNAL=http://localhost:3001
|
|
||||||
|
|
||||||
###################################################################################
|
###################################################################################
|
||||||
# Immich Version - Optional
|
# Immich Version - Optional
|
||||||
#
|
#
|
||||||
|
@ -166,7 +144,7 @@ IMMICH_SERVER_URL=http://immich-server:3001
|
||||||
From the directory you created in Step 1, (which should now contain your customized `docker-compose.yml` and `.env` files) run `docker-compose up -d`.
|
From the directory you created in Step 1, (which should now contain your customized `docker-compose.yml` and `.env` files) run `docker-compose up -d`.
|
||||||
|
|
||||||
```bash title="Start the containers using docker compose command"
|
```bash title="Start the containers using docker compose command"
|
||||||
docker-compose up -d # or `docker compose up -d` based on your docker-compose version
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -184,7 +162,7 @@ If `IMMICH_VERSION` is set, it will need to be updated to the latest or desired
|
||||||
When a new version of Immich is [released](https://github.com/immich-app/immich/releases), the application can be upgraded with the following commands, run in the directory with the `docker-compose.yml` file:
|
When a new version of Immich is [released](https://github.com/immich-app/immich/releases), the application can be upgraded with the following commands, run in the directory with the `docker-compose.yml` file:
|
||||||
|
|
||||||
```bash title="Upgrade Immich"
|
```bash title="Upgrade Immich"
|
||||||
docker-compose pull && docker-compose up -d # Or `docker compose up -d`
|
docker compose pull && docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
:::caution Automatic Updates
|
:::caution Automatic Updates
|
||||||
|
|
|
@ -63,21 +63,6 @@ These environment variables are used by the `docker-compose.yml` file and do **N
|
||||||
| `MACHINE_LEARNING_HOST` | Machine Learning Host | `0.0.0.0` | machine learning |
|
| `MACHINE_LEARNING_HOST` | Machine Learning Host | `0.0.0.0` | machine learning |
|
||||||
| `MACHINE_LEARNING_PORT` | Machine Learning Port | `3003` | machine learning |
|
| `MACHINE_LEARNING_PORT` | Machine Learning Port | `3003` | machine learning |
|
||||||
|
|
||||||
## URLs
|
|
||||||
|
|
||||||
| Variable | Description | Default | Services |
|
|
||||||
| :------------------------- | :---------------------- | :-------------------------: | :--------- |
|
|
||||||
| `IMMICH_WEB_URL` | Immich Web URL | `http://immich-web:3000` | proxy |
|
|
||||||
| `IMMICH_SERVER_URL` | Immich Server URL | `http://immich-server:3001` | web, proxy |
|
|
||||||
| `PUBLIC_IMMICH_SERVER_URL` | Public Immich URL | `http://immich-server:3001` | web |
|
|
||||||
| `IMMICH_API_URL_EXTERNAL` | Immich API URL External | `/api` | web |
|
|
||||||
|
|
||||||
:::info
|
|
||||||
|
|
||||||
The above paths are modifying the internal paths of the containers.
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
## Database
|
## Database
|
||||||
|
|
||||||
| Variable | Description | Default | Services |
|
| Variable | Description | Default | Services |
|
||||||
|
@ -188,19 +173,18 @@ Typesense URL example JSON before encoding:
|
||||||
|
|
||||||
| Variable | Description | Default | Services |
|
| Variable | Description | Default | Services |
|
||||||
| :----------------------------------------------- | :---------------------------------------------------------------- | :-----------------: | :--------------- |
|
| :----------------------------------------------- | :---------------------------------------------------------------- | :-----------------: | :--------------- |
|
||||||
| `MACHINE_LEARNING_MODEL_TTL`<sup>\*1</sup> | Inactivity time (s) before a model is unloaded (disabled if <= 0) | `0` | machine learning |
|
| `MACHINE_LEARNING_MODEL_TTL` | Inactivity time (s) before a model is unloaded (disabled if <= 0) | `300` | machine learning |
|
||||||
|
| `MACHINE_LEARNING_MODEL_TTL_POLL_S` | Interval (s) between checks for the model TTL (disabled if <= 0) | `10` | machine learning |
|
||||||
| `MACHINE_LEARNING_CACHE_FOLDER` | Directory where models are downloaded | `/cache` | machine learning |
|
| `MACHINE_LEARNING_CACHE_FOLDER` | Directory where models are downloaded | `/cache` | machine learning |
|
||||||
| `MACHINE_LEARNING_REQUEST_THREADS`<sup>\*2</sup> | Thread count of the request thread pool (disabled if <= 0) | number of CPU cores | machine learning |
|
| `MACHINE_LEARNING_REQUEST_THREADS`<sup>\*1</sup> | Thread count of the request thread pool (disabled if <= 0) | number of CPU cores | machine learning |
|
||||||
| `MACHINE_LEARNING_MODEL_INTER_OP_THREADS` | Number of parallel model operations | `1` | machine learning |
|
| `MACHINE_LEARNING_MODEL_INTER_OP_THREADS` | Number of parallel model operations | `1` | machine learning |
|
||||||
| `MACHINE_LEARNING_MODEL_INTRA_OP_THREADS` | Number of threads for each model operation | `2` | machine learning |
|
| `MACHINE_LEARNING_MODEL_INTRA_OP_THREADS` | Number of threads for each model operation | `2` | machine learning |
|
||||||
| `MACHINE_LEARNING_WORKERS`<sup>\*3</sup> | Number of worker processes to spawn | `1` | machine learning |
|
| `MACHINE_LEARNING_WORKERS`<sup>\*2</sup> | Number of worker processes to spawn | `1` | machine learning |
|
||||||
| `MACHINE_LEARNING_WORKER_TIMEOUT` | Maximum time (s) of unresponsiveness before a worker is killed | `120` | machine learning |
|
| `MACHINE_LEARNING_WORKER_TIMEOUT` | Maximum time (s) of unresponsiveness before a worker is killed | `120` | machine learning |
|
||||||
|
|
||||||
\*1: This is an experimental feature. It may result in increased memory use over time when loading models repeatedly.
|
\*1: It is recommended to begin with this parameter when changing the concurrency levels of the machine learning service and then tune the other ones.
|
||||||
|
|
||||||
\*2: It is recommended to begin with this parameter when changing the concurrency levels of the machine learning service and then tune the other ones.
|
\*2: Since each process duplicates models in memory, changing this is not recommended unless you have abundant memory to go around.
|
||||||
|
|
||||||
\*3: Since each process duplicates models in memory, changing this is not recommended unless you have abundant memory to go around.
|
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
|
|
||||||
|
|
|
@ -98,12 +98,12 @@ alt="Select Plugins > Compose.Manager > Add New Stack > Label it Immich"
|
||||||
|
|
||||||
> Note: This can take several minutes depending on your Internet speed and Unraid hardware
|
> Note: This can take several minutes depending on your Internet speed and Unraid hardware
|
||||||
|
|
||||||
9. Once on the Docker page you will see several Immich containers, one of them will be labelled `immich_proxy` and will have a port mapping. Visit the `IP:PORT` displayed in your web browser and you should see the Immich admin setup page.
|
9. Once on the Docker page you will see several Immich containers, one of them will be labelled `immich_web` and will have a port mapping. Visit the `IP:PORT` displayed in your web browser and you should see the Immich admin setup page.
|
||||||
|
|
||||||
<img
|
<img
|
||||||
src={require('./img/unraid06.webp').default}
|
src={require('./img/unraid06.webp').default}
|
||||||
width="80%"
|
width="80%"
|
||||||
alt="Go to Docker Tab and visit the address listed next to immich-proxy"
|
alt="Go to Docker Tab and visit the address listed next to immich-web"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<details >
|
<details >
|
||||||
|
@ -112,12 +112,12 @@ alt="Go to Docker Tab and visit the address listed next to immich-proxy"
|
||||||
<img
|
<img
|
||||||
src={require('./img/unraid07.webp').default}
|
src={require('./img/unraid07.webp').default}
|
||||||
width="80%"
|
width="80%"
|
||||||
alt="Go to Docker Tab and visit the address listed next to immich-proxy"
|
alt="Go to Docker Tab and visit the address listed next to immich-web"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
src={require('./img/unraid08.webp').default}
|
src={require('./img/unraid08.webp').default}
|
||||||
width="90%"
|
width="90%"
|
||||||
alt="Go to Docker Tab and visit the address listed next to immich-proxy"
|
alt="Go to Docker Tab and visit the address listed next to immich-web"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
|
@ -12,8 +12,8 @@ If you feel like this is the right cause and the app is something you see yourse
|
||||||
|
|
||||||
## Donation
|
## Donation
|
||||||
|
|
||||||
- Monthly donation via [GitHub Sponsors](https://github.com/sponsors/alextran1502)
|
- Monthly donation via [GitHub Sponsors](https://github.com/sponsors/immich-app)
|
||||||
- One-time donation via [GitHub Sponsors](https://github.com/sponsors/alextran1502?frequency=one-time&sponsor=alextran1502)
|
- One-time donation via [GitHub Sponsors](https://github.com/sponsors/immich-app?frequency=one-time)
|
||||||
- [Librepay](https://liberapay.com/alex.tran1502/)
|
- [Librepay](https://liberapay.com/alex.tran1502/)
|
||||||
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
- [buymeacoffee](https://www.buymeacoffee.com/altran1502)
|
||||||
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
- Bitcoin: 1FvEp6P6NM8EZEkpGUFAN2LqJ1gxusNxZX
|
||||||
|
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 321 KiB After Width: | Height: | Size: 404 KiB |
Before Width: | Height: | Size: 335 KiB After Width: | Height: | Size: 334 KiB |
152
docs/package-lock.json
generated
|
@ -15,7 +15,7 @@
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.13",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"clsx": "^1.2.1",
|
"clsx": "^2.0.0",
|
||||||
"docusaurus-lunr-search": "^2.3.2",
|
"docusaurus-lunr-search": "^2.3.2",
|
||||||
"docusaurus-preset-openapi": "^0.6.3",
|
"docusaurus-preset-openapi": "^0.6.3",
|
||||||
"postcss": "^8.4.25",
|
"postcss": "^8.4.25",
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "^2.4.1",
|
"@docusaurus/module-type-aliases": "^2.4.1",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^3.0.0",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -2603,6 +2603,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17.0.0"
|
"react-dom": "^16.8.4 || ^17.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@docusaurus/theme-classic/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@docusaurus/theme-common": {
|
"node_modules/@docusaurus/theme-common": {
|
||||||
"version": "2.4.3",
|
"version": "2.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.4.3.tgz",
|
||||||
|
@ -2633,6 +2641,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17.0.0"
|
"react-dom": "^16.8.4 || ^17.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@docusaurus/theme-common/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@docusaurus/theme-search-algolia": {
|
"node_modules/@docusaurus/theme-search-algolia": {
|
||||||
"version": "2.4.3",
|
"version": "2.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.4.3.tgz",
|
||||||
|
@ -2663,6 +2679,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17.0.0"
|
"react-dom": "^16.8.4 || ^17.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@docusaurus/theme-search-algolia/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@docusaurus/theme-translations": {
|
"node_modules/@docusaurus/theme-translations": {
|
||||||
"version": "2.4.3",
|
"version": "2.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.4.3.tgz",
|
||||||
|
@ -4948,9 +4972,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/clsx": {
|
"node_modules/clsx": {
|
||||||
"version": "1.2.1",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
|
||||||
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
"integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
}
|
}
|
||||||
|
@ -5995,6 +6019,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17"
|
"react-dom": "^16.8.4 || ^17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/docusaurus-lunr-search/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/docusaurus-plugin-openapi": {
|
"node_modules/docusaurus-plugin-openapi": {
|
||||||
"version": "0.6.4",
|
"version": "0.6.4",
|
||||||
"resolved": "https://registry.npmjs.org/docusaurus-plugin-openapi/-/docusaurus-plugin-openapi-0.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/docusaurus-plugin-openapi/-/docusaurus-plugin-openapi-0.6.4.tgz",
|
||||||
|
@ -6025,6 +6057,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17.0.0"
|
"react-dom": "^16.8.4 || ^17.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/docusaurus-plugin-openapi/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/docusaurus-plugin-openapi/node_modules/fs-extra": {
|
"node_modules/docusaurus-plugin-openapi/node_modules/fs-extra": {
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
|
||||||
|
@ -6098,6 +6138,14 @@
|
||||||
"react-dom": "^16.8.4 || ^17.0.0"
|
"react-dom": "^16.8.4 || ^17.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/docusaurus-theme-openapi/node_modules/clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dom-converter": {
|
"node_modules/dom-converter": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",
|
||||||
|
@ -10801,15 +10849,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "2.8.8",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin-prettier.js"
|
"prettier": "bin/prettier.cjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.13.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||||
|
@ -13232,19 +13280,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
"version": "3.3.3",
|
"version": "3.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz",
|
||||||
"integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==",
|
"integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
"arg": "^5.0.2",
|
"arg": "^5.0.2",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"didyoumean": "^1.2.2",
|
"didyoumean": "^1.2.2",
|
||||||
"dlv": "^1.1.3",
|
"dlv": "^1.1.3",
|
||||||
"fast-glob": "^3.2.12",
|
"fast-glob": "^3.3.0",
|
||||||
"glob-parent": "^6.0.2",
|
"glob-parent": "^6.0.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"jiti": "^1.18.2",
|
"jiti": "^1.19.1",
|
||||||
"lilconfig": "^2.1.0",
|
"lilconfig": "^2.1.0",
|
||||||
"micromatch": "^4.0.5",
|
"micromatch": "^4.0.5",
|
||||||
"normalize-path": "^3.0.0",
|
"normalize-path": "^3.0.0",
|
||||||
|
@ -13566,9 +13614,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.2.2",
|
"version": "5.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
|
||||||
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
|
"integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==",
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
|
@ -16745,6 +16793,13 @@
|
||||||
"rtlcss": "^3.5.0",
|
"rtlcss": "^3.5.0",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"utility-types": "^3.10.0"
|
"utility-types": "^3.10.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@docusaurus/theme-common": {
|
"@docusaurus/theme-common": {
|
||||||
|
@ -16768,6 +16823,13 @@
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"use-sync-external-store": "^1.2.0",
|
"use-sync-external-store": "^1.2.0",
|
||||||
"utility-types": "^3.10.0"
|
"utility-types": "^3.10.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@docusaurus/theme-search-algolia": {
|
"@docusaurus/theme-search-algolia": {
|
||||||
|
@ -16791,6 +16853,13 @@
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"utility-types": "^3.10.0"
|
"utility-types": "^3.10.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@docusaurus/theme-translations": {
|
"@docusaurus/theme-translations": {
|
||||||
|
@ -18515,9 +18584,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"clsx": {
|
"clsx": {
|
||||||
"version": "1.2.1",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
|
||||||
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
"integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q=="
|
||||||
},
|
},
|
||||||
"collapse-white-space": {
|
"collapse-white-space": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
|
@ -19243,6 +19312,13 @@
|
||||||
"to-vfile": "^6.1.0",
|
"to-vfile": "^6.1.0",
|
||||||
"unified": "^9.0.0",
|
"unified": "^9.0.0",
|
||||||
"unist-util-is": "^4.0.2"
|
"unist-util-is": "^4.0.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"docusaurus-plugin-openapi": {
|
"docusaurus-plugin-openapi": {
|
||||||
|
@ -19268,6 +19344,11 @@
|
||||||
"webpack": "^5.73.0"
|
"webpack": "^5.73.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
},
|
||||||
"fs-extra": {
|
"fs-extra": {
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
|
||||||
|
@ -19321,6 +19402,13 @@
|
||||||
"react-redux": "^7.2.0",
|
"react-redux": "^7.2.0",
|
||||||
"redux-devtools-extension": "^2.13.8",
|
"redux-devtools-extension": "^2.13.8",
|
||||||
"webpack": "^5.73.0"
|
"webpack": "^5.73.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clsx": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dom-converter": {
|
"dom-converter": {
|
||||||
|
@ -22663,9 +22751,9 @@
|
||||||
"integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA=="
|
"integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA=="
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "2.8.8",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"pretty-error": {
|
"pretty-error": {
|
||||||
|
@ -24517,19 +24605,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tailwindcss": {
|
"tailwindcss": {
|
||||||
"version": "3.3.3",
|
"version": "3.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz",
|
||||||
"integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==",
|
"integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
"arg": "^5.0.2",
|
"arg": "^5.0.2",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"didyoumean": "^1.2.2",
|
"didyoumean": "^1.2.2",
|
||||||
"dlv": "^1.1.3",
|
"dlv": "^1.1.3",
|
||||||
"fast-glob": "^3.2.12",
|
"fast-glob": "^3.3.0",
|
||||||
"glob-parent": "^6.0.2",
|
"glob-parent": "^6.0.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"jiti": "^1.18.2",
|
"jiti": "^1.19.1",
|
||||||
"lilconfig": "^2.1.0",
|
"lilconfig": "^2.1.0",
|
||||||
"micromatch": "^4.0.5",
|
"micromatch": "^4.0.5",
|
||||||
"normalize-path": "^3.0.0",
|
"normalize-path": "^3.0.0",
|
||||||
|
@ -24757,9 +24845,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "5.2.2",
|
"version": "5.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
|
||||||
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w=="
|
"integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ=="
|
||||||
},
|
},
|
||||||
"ua-parser-js": {
|
"ua-parser-js": {
|
||||||
"version": "1.0.36",
|
"version": "1.0.36",
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.13",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"clsx": "^1.2.1",
|
"clsx": "^2.0.0",
|
||||||
"docusaurus-lunr-search": "^2.3.2",
|
"docusaurus-lunr-search": "^2.3.2",
|
||||||
"docusaurus-preset-openapi": "^0.6.3",
|
"docusaurus-preset-openapi": "^0.6.3",
|
||||||
"postcss": "^8.4.25",
|
"postcss": "^8.4.25",
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "^2.4.1",
|
"@docusaurus/module-type-aliases": "^2.4.1",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^3.0.0",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
|
|
|
@ -34,7 +34,7 @@ function HomepageHeader() {
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img src="/img/immich-screenshots.png" alt="logo" />
|
<img src="/img/immich-screenshots.png" alt="screenshots" width={'85%'} />
|
||||||
|
|
||||||
<div className="flex flex-col sm:flex-row place-items-center place-content-center mt-4 gap-1">
|
<div className="flex flex-col sm:flex-row place-items-center place-content-center mt-4 gap-1">
|
||||||
<div className="h-24">
|
<div className="h-24">
|
||||||
|
|
|
@ -3,17 +3,20 @@ import {
|
||||||
mdiAndroid,
|
mdiAndroid,
|
||||||
mdiAppleIos,
|
mdiAppleIos,
|
||||||
mdiArchiveOutline,
|
mdiArchiveOutline,
|
||||||
|
mdiBash,
|
||||||
mdiBookSearchOutline,
|
mdiBookSearchOutline,
|
||||||
mdiCakeVariant,
|
mdiCakeVariant,
|
||||||
mdiCheckAll,
|
mdiCheckAll,
|
||||||
mdiCheckboxMarked,
|
mdiCheckboxMarked,
|
||||||
mdiCollage,
|
mdiCollage,
|
||||||
|
mdiContentCopy,
|
||||||
mdiDevices,
|
mdiDevices,
|
||||||
mdiFaceMan,
|
mdiFaceMan,
|
||||||
mdiFaceManOutline,
|
mdiFaceManOutline,
|
||||||
mdiFile,
|
mdiFile,
|
||||||
mdiFileSearch,
|
mdiFileSearch,
|
||||||
mdiFolder,
|
mdiFolder,
|
||||||
|
mdiForum,
|
||||||
mdiHeart,
|
mdiHeart,
|
||||||
mdiImage,
|
mdiImage,
|
||||||
mdiImageAlbum,
|
mdiImageAlbum,
|
||||||
|
@ -26,6 +29,7 @@ import {
|
||||||
mdiMerge,
|
mdiMerge,
|
||||||
mdiMonitor,
|
mdiMonitor,
|
||||||
mdiMotionPlayOutline,
|
mdiMotionPlayOutline,
|
||||||
|
mdiPalette,
|
||||||
mdiPanVertical,
|
mdiPanVertical,
|
||||||
mdiPartyPopper,
|
mdiPartyPopper,
|
||||||
mdiRaw,
|
mdiRaw,
|
||||||
|
@ -39,6 +43,7 @@ import {
|
||||||
mdiText,
|
mdiText,
|
||||||
mdiThemeLightDark,
|
mdiThemeLightDark,
|
||||||
mdiTrashCanOutline,
|
mdiTrashCanOutline,
|
||||||
|
mdiVectorCombine,
|
||||||
mdiVideo,
|
mdiVideo,
|
||||||
mdiWeb,
|
mdiWeb,
|
||||||
} from '@mdi/js';
|
} from '@mdi/js';
|
||||||
|
@ -47,6 +52,61 @@ import React from 'react';
|
||||||
import Timeline, { DateType, Item } from '../components/timeline';
|
import Timeline, { DateType, Item } from '../components/timeline';
|
||||||
|
|
||||||
const items: Item[] = [
|
const items: Item[] = [
|
||||||
|
{
|
||||||
|
icon: mdiVectorCombine,
|
||||||
|
description:
|
||||||
|
'The serving of the web app is merged into the server image, allowing us to remove two containers from the stack.',
|
||||||
|
title: 'Container consolidation',
|
||||||
|
release: 'v1.88.0',
|
||||||
|
tag: 'v1.88.0',
|
||||||
|
date: new Date(2023, 10, 20),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: mdiBash,
|
||||||
|
description: 'Version 2 of the Immich CLI is released, replacing the legacy v1 CLI.',
|
||||||
|
title: 'CLI v2',
|
||||||
|
release: 'v1.88.0',
|
||||||
|
tag: 'v1.88.0',
|
||||||
|
date: new Date(2023, 10, 19),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: mdiForum,
|
||||||
|
description: 'Comment a photo or a video in a shared album',
|
||||||
|
title: 'Activity',
|
||||||
|
release: 'v1.84.0',
|
||||||
|
tag: 'v1.84.0',
|
||||||
|
date: new Date(2023, 10, 1),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: mdiStar,
|
||||||
|
description: 'Reach 20K Stars on GitHub!',
|
||||||
|
title: '20,000 Stars',
|
||||||
|
release: 'v1.83.0',
|
||||||
|
tag: 'v1.83.0',
|
||||||
|
date: new Date(2023, 9, 28),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: mdiContentCopy,
|
||||||
|
title: 'Stack assets',
|
||||||
|
description: 'Manual asset stacking for grouping and hiding related assets in the main timeline.',
|
||||||
|
release: 'v1.83.0',
|
||||||
|
tag: 'v1.83.0',
|
||||||
|
date: new Date(2023, 9, 28),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: mdiPalette,
|
||||||
|
title: 'Custom theme',
|
||||||
|
description: 'Apply your custom CSS for modifying fonts, colors, and styles in the web application.',
|
||||||
|
release: 'v1.83.0',
|
||||||
|
tag: 'v1.83.0',
|
||||||
|
date: new Date(2023, 9, 28),
|
||||||
|
dateType: DateType.RELEASE,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: mdiTrashCanOutline,
|
icon: mdiTrashCanOutline,
|
||||||
title: 'Trash Feature',
|
title: 'Trash Feature',
|
||||||
|
@ -283,7 +343,7 @@ const items: Item[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: mdiStar,
|
icon: mdiStar,
|
||||||
description: 'Reach 10K Starts on GitHub!',
|
description: 'Reach 10K Stars on GitHub!',
|
||||||
title: '10,000 Stars',
|
title: '10,000 Stars',
|
||||||
release: 'v1.54.0',
|
release: 'v1.54.0',
|
||||||
tag: 'v1.54.0',
|
tag: 'v1.54.0',
|
||||||
|
|
|
@ -61,8 +61,12 @@
|
||||||
.searchbox__input {
|
.searchbox__input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-transition: box-shadow 0.4s ease, background 0.4s ease;
|
-webkit-transition:
|
||||||
transition: box-shadow 0.4s ease, background 0.4s ease;
|
box-shadow 0.4s ease,
|
||||||
|
background 0.4s ease;
|
||||||
|
transition:
|
||||||
|
box-shadow 0.4s ease,
|
||||||
|
background 0.4s ease;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
box-shadow: inset 0 0 0 1px #cccccc;
|
box-shadow: inset 0 0 0 1px #cccccc;
|
||||||
|
@ -243,7 +247,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.algolia-autocomplete .ds-dropdown-menu {
|
.algolia-autocomplete .ds-dropdown-menu {
|
||||||
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
|
box-shadow:
|
||||||
|
0 1px 0 0 rgba(0, 0, 0, 0.2),
|
||||||
|
0 2px 3px 0 rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 601px) {
|
@media (min-width: 601px) {
|
||||||
|
|
BIN
docs/static/img/immich-screenshots.png
vendored
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.8 MiB |
|
@ -12,7 +12,8 @@
|
||||||
{ "source": "/docs/overview/logo-meaning", "destination": "/docs/overview/logo" },
|
{ "source": "/docs/overview/logo-meaning", "destination": "/docs/overview/logo" },
|
||||||
{ "source": "/docs/overview/technology-stack", "destination": "/docs/developer/architecture" },
|
{ "source": "/docs/overview/technology-stack", "destination": "/docs/developer/architecture" },
|
||||||
{ "source": "/docs/usage/automatic-backup", "destination": "/docs/features/automatic-backup" },
|
{ "source": "/docs/usage/automatic-backup", "destination": "/docs/features/automatic-backup" },
|
||||||
{ "source": "/docs/usage/bulk-upload", "destination": "/docs/features/bulk-upload" },
|
{ "source": "/docs/usage/bulk-upload", "destination": "/docs/features/command-line-interface" },
|
||||||
|
{ "source": "/docs/features/bulk-upload", "destination": "/docs/features/command-line-interface" },
|
||||||
{ "source": "/docs/usage/oauth", "destination": "/docs/administration/oauth" },
|
{ "source": "/docs/usage/oauth", "destination": "/docs/administration/oauth" },
|
||||||
{ "source": "/docs/usage/post-installation", "destination": "/docs/install/post-install" },
|
{ "source": "/docs/usage/post-installation", "destination": "/docs/install/post-install" },
|
||||||
{ "source": "/docs/usage/update", "destination": "/docs/install/docker-compose#step-4---upgrading" },
|
{ "source": "/docs/usage/update", "destination": "/docs/install/docker-compose#step-4---upgrading" },
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.11-bookworm as builder
|
FROM python:3.11-bookworm@sha256:ba7a7ac30c38e119c4304f98ef0e188f90f4f67a958bb6899da9defb99bfb471 as builder
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
|
@ -10,11 +10,10 @@ RUN poetry config installer.max-workers 10 && \
|
||||||
RUN python -m venv /opt/venv
|
RUN python -m venv /opt/venv
|
||||||
ENV VIRTUAL_ENV="/opt/venv" PATH="/opt/venv/bin:${PATH}"
|
ENV VIRTUAL_ENV="/opt/venv" PATH="/opt/venv/bin:${PATH}"
|
||||||
|
|
||||||
COPY poetry.lock pyproject.toml requirements.txt ./
|
COPY poetry.lock pyproject.toml ./
|
||||||
RUN poetry install --sync --no-interaction --no-ansi --no-root --only main
|
RUN poetry install --sync --no-interaction --no-ansi --no-root --only main
|
||||||
RUN pip install --no-deps -r requirements.txt
|
|
||||||
|
|
||||||
FROM python:3.11-slim-bookworm
|
FROM python:3.11-slim-bookworm@sha256:cc758519481092eb5a4a5ab0c1b303e288880d59afc601958d19e95b300bc86b
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends tini libmimalloc2.0 && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y --no-install-recommends tini libmimalloc2.0 && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ from .schemas import ModelType
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
cache_folder: str = "/cache"
|
cache_folder: str = "/cache"
|
||||||
model_ttl: int = 0
|
model_ttl: int = 300
|
||||||
|
model_ttl_poll_s: int = 10
|
||||||
host: str = "0.0.0.0"
|
host: str = "0.0.0.0"
|
||||||
port: int = 3003
|
port: int = 3003
|
||||||
workers: int = 1
|
workers: int = 1
|
||||||
|
@ -38,8 +39,16 @@ class LogSettings(BaseSettings):
|
||||||
_clean_name = str.maketrans(":\\/", "___", ".")
|
_clean_name = str.maketrans(":\\/", "___", ".")
|
||||||
|
|
||||||
|
|
||||||
|
def clean_name(model_name: str) -> str:
|
||||||
|
return model_name.split("/")[-1].translate(_clean_name)
|
||||||
|
|
||||||
|
|
||||||
def get_cache_dir(model_name: str, model_type: ModelType) -> Path:
|
def get_cache_dir(model_name: str, model_type: ModelType) -> Path:
|
||||||
return Path(settings.cache_folder) / model_type.value / model_name.translate(_clean_name)
|
return Path(settings.cache_folder) / model_type.value / clean_name(model_name)
|
||||||
|
|
||||||
|
|
||||||
|
def get_hf_model_name(model_name: str) -> str:
|
||||||
|
return f"immich-app/{clean_name(model_name)}"
|
||||||
|
|
||||||
|
|
||||||
LOG_LEVELS: dict[str, int] = {
|
LOG_LEVELS: dict[str, int] = {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import json
|
import json
|
||||||
from typing import Any, Iterator, TypeAlias
|
from pathlib import Path
|
||||||
|
from typing import Any, Iterator
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
@ -8,8 +9,7 @@ from fastapi.testclient import TestClient
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from .main import app, init_state
|
from .main import app, init_state
|
||||||
|
from .schemas import ndarray_f32
|
||||||
ndarray: TypeAlias = np.ndarray[int, np.dtype[np.float32]]
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
@ -18,13 +18,13 @@ def pil_image() -> Image.Image:
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def cv_image(pil_image: Image.Image) -> ndarray:
|
def cv_image(pil_image: Image.Image) -> ndarray_f32:
|
||||||
return np.asarray(pil_image)[:, :, ::-1] # PIL uses RGB while cv2 uses BGR
|
return np.asarray(pil_image)[:, :, ::-1] # PIL uses RGB while cv2 uses BGR
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_get_model() -> Iterator[mock.Mock]:
|
def mock_get_model() -> Iterator[mock.Mock]:
|
||||||
with mock.patch("app.models.cache.InferenceModel.from_model_type", autospec=True) as mocked:
|
with mock.patch("app.models.cache.from_model_type", autospec=True) as mocked:
|
||||||
yield mocked
|
yield mocked
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,4 +36,27 @@ def deployed_app() -> TestClient:
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def responses() -> dict[str, Any]:
|
def responses() -> dict[str, Any]:
|
||||||
return json.load(open("responses.json", "r"))
|
responses: dict[str, Any] = json.load(open("responses.json", "r"))
|
||||||
|
return responses
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def clip_model_cfg() -> dict[str, Any]:
|
||||||
|
return {
|
||||||
|
"embed_dim": 512,
|
||||||
|
"vision_cfg": {"image_size": 224, "layers": 12, "width": 768, "patch_size": 32},
|
||||||
|
"text_cfg": {"context_length": 77, "vocab_size": 49408, "width": 512, "heads": 8, "layers": 12},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def clip_preprocess_cfg() -> dict[str, Any]:
|
||||||
|
return {
|
||||||
|
"size": [224, 224],
|
||||||
|
"mode": "RGB",
|
||||||
|
"mean": [0.48145466, 0.4578275, 0.40821073],
|
||||||
|
"std": [0.26862954, 0.26130258, 0.27577711],
|
||||||
|
"interpolation": "bicubic",
|
||||||
|
"resize_mode": "shortest",
|
||||||
|
"fill_color": 0,
|
||||||
|
}
|
||||||
|
|