I
Immich3y ago
konni

only showing thumbnails

running in docker with a separare nginx-reverse-proxy pointing to immich_proxy:8080. also tried with a fresh config pointing / to immich-web and /api to immich-server, same results. I can access immich via website and android app, can upload photos via website and app. Unfortunately on the website I can only see thumbnails, the photos never load, the part stays black. Works fine in the app. The entire docker-compose logs -f is clean, I do see this in "my" nginx proxy when trying to open a photo:
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/asset/assetById/456ce00a-8a1c-4134-a38a-80c62c86d5eb HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/asset/assetById/456ce00a-8a1c-4134-a38a-80c62c86d5eb?key= HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/album?assetId=456ce00a-8a1c-4134-a38a-80c62c86d5eb HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/asset/assetById/456ce00a-8a1c-4134-a38a-80c62c86d5eb HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/asset/assetById/456ce00a-8a1c-4134-a38a-80c62c86d5eb?key= HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
xxx - - [27/Jan/2023:21:51:28 +0100] "GET /api/album?assetId=456ce00a-8a1c-4134-a38a-80c62c86d5eb HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
Now I can copy the /api/asset/assetById/456ce00a-8a1c-4134-a38a-80c62c86d5eb part, add it to the base-url and get json-properties of the file. I found this line in the logs
/api/asset/file/some-other-assetId?isThumb=false&isWeb=true&key
/api/asset/file/some-other-assetId?isThumb=false&isWeb=true&key
And I can add the asset-id from before to load the picture in the browser. Edit: Clicking the download button also works just fine. So all does work somehow, just not by itself. I am fairly certain it's just some small issue, but I am not sure how to debug this further. Maybe someone encountered something similar before? thank you! konni
3 Replies
konni
konniOP3y ago
Edit2: Using server-ip:2283 works all the way. So it is something in my nginx.
Sitram
Sitram3y ago
are you running nginx from swag?
konni
konniOP3y ago
for future reference, turns out these two lines were to blame:
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

Did you find this page helpful?