rockhead
IImmich
•Created by rockhead on 3/2/2023 in #help-desk-support
CLI photo import and bulk photo delete
I just used the cli tool to bulk import my photos and I noticed hundreds of photos have the current date. I figured out its because the metadata was incorrectly named (not sure why)
i.e. IMG_0044 (2).JPG.json and the file is IMG_0044(2).JPG
I want delete all those photos and start over after I rename them all to remove the space in the file name.
In doing this I also realized I forgot to add the --album flag, so I would like to remove all the photos I just added.
What is the best way to do this? Thanks
In doing this I also realized I forgot to add the --album flag, so I would like to remove all the photos I just added.
What is the best way to do this? Thanks
7 replies
IImmich
•Created by rockhead on 1/12/2023 in #help-desk-support
Having trouble getting reverse proxy working
TLDR: using nginx reverse proxy everything works except mobile app access.
I have immich running through docker-compose. I added an nginx container to the immich docker compose yaml. I tried a few different settings with the nginx config in that container, but can't seem to get anything working (completely).
My nginx.conf it posted below. I can access immich through a browser both at: localhost:2283 and https://immich.domain.com I can connect with the mobile app using localhost:2283/api, but whenever I try to use the https://immich.domain.com/api I get an error, ''Error logging you in, check server URL, email and password" I am pretty sure nginx is proxying the api correct, because I can go to "https://immich.domain.com/api/server-info/ping" and I see the correct response. I had to remove a few lines from nginx the post was too long. ``` worker_processes 1; pid /tmp/nginx.pid; events { worker_connections 1024; } http {
sendfile on;
large_client_header_buffers 4 32k;
server {
listen 443 ssl;
server_name immich.;
ssl_certificate /nginx/site.crt;
ssl_certificate_key /nginx/site.dec.key;
proxy_http_version 1.1;
location / {
proxy_pass http://immich-web:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive; }
location /api {
proxy_pass http://immich-server:3001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
rewrite /api/(.*) /$1 break;
}
} } ```
My nginx.conf it posted below. I can access immich through a browser both at: localhost:2283 and https://immich.domain.com I can connect with the mobile app using localhost:2283/api, but whenever I try to use the https://immich.domain.com/api I get an error, ''Error logging you in, check server URL, email and password" I am pretty sure nginx is proxying the api correct, because I can go to "https://immich.domain.com/api/server-info/ping" and I see the correct response. I had to remove a few lines from nginx the post was too long. ``` worker_processes 1; pid /tmp/nginx.pid; events { worker_connections 1024; } http {
sendfile on;
large_client_header_buffers 4 32k;
server {
listen 443 ssl;
server_name immich.;
ssl_certificate /nginx/site.crt;
ssl_certificate_key /nginx/site.dec.key;
proxy_http_version 1.1;
location / {
proxy_pass http://immich-web:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive; }
location /api {
proxy_pass http://immich-server:3001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
rewrite /api/(.*) /$1 break;
}
} } ```
13 replies