diff options
author | pikl | 2023-11-22 19:01:10 +0000 |
---|---|---|
committer | pikl | 2023-11-22 19:01:10 +0000 |
commit | a5c61094a421b743a47294c8110fa8faf3b4eb33 (patch) | |
tree | b2b10cb2825e13255974d7af8d2880155acf05c9 | |
parent | 24f668bb44f93e0206347bb7af670e082de8124b (diff) | |
parent | bc8f5683dac37fee29a2bcac3e000bf70b35f1e1 (diff) | |
download | aur-a5c61094a421b743a47294c8110fa8faf3b4eb33.tar.gz |
Merge pull request 'bump v1.88.1' (#1) from v1.88.1 into master
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | immich-server.service | 4 | ||||
-rw-r--r-- | immich-web.service | 38 | ||||
-rw-r--r-- | nginx.immich.conf | 18 |
5 files changed, 14 insertions, 74 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6b610fcd2f10 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +immich-*.tar.gz @@ -1,6 +1,8 @@ +# Maintainer: wabi <aschrafl@jetnet.ch> +# Maintainer: pikl <me@pikl.uk> pkgname=immich -pkgrel=7 -pkgver=1.87.0 +pkgrel=1 +pkgver=1.88.1 pkgdesc='Self-hosted photos and videos backup tool' url='https://github.com/immich-app/immich' license=('MIT') @@ -42,7 +44,6 @@ optdepends=( source=("${pkgname}-${pkgver}.tar.gz::https://github.com/immich-app/immich/archive/refs/tags/v${pkgver}.tar.gz" "${pkgname}-server.service" "${pkgname}-microservices.service" - "${pkgname}-web.service" "${pkgname}-machine-learning.service" "${pkgname}.sysusers" "${pkgname}.tmpfiles" @@ -50,15 +51,14 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/immich-app/immich/archi 'nginx.immich.conf' 'media.util.ts.patch' ) -sha256sums=('f9196aa5567415d2b71cd50ce9ec8830adc8a2dfac65acea9287fcf470cb91c5' - '46a7ace4f315e0a69a0da49a9a54d442baa6573092572f1e4323d1373a0cabb5' +sha256sums=('3fe1ac4e0840fcd997cf3a7df68248039fdbe0d5a540f0414e5f3311d6670746' + '42792b6b7c5461385395907af9bf724e02c6622603a741e86c73b1204a5ad973' '08df269485ebea360dc1156409d148c959ba28040017cd02be2606c5d28be5b0' - '64da5f28147c40a2285ed2295d85951c932d155069295a692a25995e6e56028e' 'd20455349cdb9409adb42cdbde48c30a176d2a5337ad148c6d2227ecc523c88a' '01707746e8718fe169b729b7b3d9e26e870bf2dbc4d1f6cdc7ed7d3839e92c0e' '23894fe92e02f8d69d045ece73d68ba5122549a39c60475780a5b03bebcab3aa' '89819defe1108056f1bf876a6e0c1d6ecc10382a931fb832fccc132eaeaece1b' - '00827701798731c13fbd2d37f8ffb14816bfab579c0f75d532ab119295c4148c' + 'cc405c774e34cd161f00ccd882e66c2d2ce28405964bf62472ebc3f59d642060' 'd38cdaa031f741998f2d31504381bce4db1a8771c774a2c2bac547d7d2b3c70b') backup=("etc/immich.conf") @@ -126,17 +126,9 @@ package() { cp -r server/bin "${pkgdir}/usr/lib/immich/app/server/bin" install -Dm644 server/package.json "${pkgdir}/usr/lib/immich/app/server/package.json" install -Dm644 server/package-lock.json "${pkgdir}/usr/lib/immich/app/server/package-lock.json" - install -Dm644 server/LICENSE "${pkgdir}/usr/lib/immich/app/server/LICENSE" + install -Dm644 LICENSE "${pkgdir}/usr/lib/immich/app/LICENSE" cp -r server/assets "${pkgdir}/usr/lib/immich/app/server/assets" - - # install web frontend - # from: web/Dockerfile COPY commands (entrypoint.sh not required) - # * setting NODE_ENV=production picked up in systemd service file - install -dm755 "${pkgdir}/usr/lib/immich/app/web" - cp -r web/node_modules "${pkgdir}/usr/lib/immich/app/web/node_modules" - cp -r web/build "${pkgdir}/usr/lib/immich/app/web/build" - install -Dm644 web/package.json "${pkgdir}/usr/lib/immich/app/web/package.json" - install -Dm644 web/package-lock.json "${pkgdir}/usr/lib/immich/app/web/package-lock.json" + cp -r web/build "${pkgdir}/usr/lib/immich/app/server/www" # install machine-learning # from: machine-learning/Dockerfile COPY commands @@ -150,7 +142,6 @@ package() { # install systemd service files install -Dm644 immich-server.service "${pkgdir}/usr/lib/systemd/system/immich-server.service" - install -Dm644 immich-web.service "${pkgdir}/usr/lib/systemd/system/immich-web.service" install -Dm644 immich-microservices.service "${pkgdir}/usr/lib/systemd/system/immich-microservices.service" install -Dm644 immich-machine-learning.service "${pkgdir}/usr/lib/systemd/system/immich-machine-learning.service" diff --git a/immich-server.service b/immich-server.service index 76a66331821a..5fc85523f677 100644 --- a/immich-server.service +++ b/immich-server.service @@ -9,8 +9,8 @@ Wants=network-online.target After=network-online.target # for convenience, all services start with immich-server -BindsTo=immich-microservices.service immich-web.service immich-machine-learning.service -After=immich-microservices.service immich-web.service immich-machine-learning.service +BindsTo=immich-microservices.service immich-machine-learning.service +After=immich-microservices.service immich-machine-learning.service [Service] User=immich diff --git a/immich-web.service b/immich-web.service deleted file mode 100644 index 5ce98b63c0da..000000000000 --- a/immich-web.service +++ /dev/null @@ -1,38 +0,0 @@ -[Unit] -Description=Immich web -Documentation=https://github.com/immich-app/immich -Requires=immich-server.service -After=network.target -Wants=network-online.target -After=network-online.target - -[Service] -User=immich -Group=immich -Type=simple -Restart=on-failure - -EnvironmentFile=/etc/immich.conf -Environment=NODE_ENV=production -SyslogIdentifier=immich-web -ExecStart=node build/index.js - -PrivateDevices=true -ProtectHome=true -ProtectSystem=strict -ProtectKernelTunables=yes -ProtectKernelModules=yes -ProtectControlGroups=yes - -RestrictNamespaces=yes - -SystemCallArchitectures=native -AmbientCapabilities= -CapabilityBoundingSet= -NoNewPrivileges=yes - -WorkingDirectory=/usr/lib/immich/app/web -ReadWritePaths=/tmp /var/tmp - -[Install] -WantedBy=multi-user.target diff --git a/nginx.immich.conf b/nginx.immich.conf index a4af11b62912..d839e2d7cb05 100644 --- a/nginx.immich.conf +++ b/nginx.immich.conf @@ -19,12 +19,6 @@ upstream server { keepalive 2; } -upstream web { - server localhost:3000; - # server ${IMMICH_WEB_HOST}; - keepalive 2; -} - server { listen 8080; @@ -63,17 +57,9 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; - location /api { - - rewrite /api/(.*) /$1 break; - - proxy_pass http://server; - # proxy_pass ${IMMICH_SERVER_SCHEME}server; - } - location / { - - proxy_pass http://web; + proxy_pass http://server; # proxy_pass ${IMMICH_WEB_SCHEME}web; } + } |