[BUG] Video playback fails in apps (android and IOS) when adding custom proxy with self-signed SSL #1517

Closed
opened 2026-02-05 02:12:23 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @w00tlarr on GitHub (Oct 26, 2023).

The bug

Initial Login to Immich app is OK where I'm able to set the https url and enabled the Allow self-signed SSL certificates

Initial building of timeline and images are OK too and able to scroll all the way down the timeline with all thumbnails loaded properly.

Am able to view any static Images fine but I unable to playback any videos in the app itself when self-signed SSL.
Tho I am able to download the original video file.

Using external nginx as reverse proxy with this nginx.conf:

server {
listen 2000 ssl default_server;
listen [::]:2000 ssl default_server;
server_name _;

ssl_certificate /etc/certs/server.pem;
ssl_certificate_key /etc/certs/server-key.pem;

root /var/www/html;

client_max_body_size 50000M;

#"Immich"
location / {
proxy_pass_request_headers on;
    proxy_pass http://192.168.1.XX:2283;
    proxy_set_header Host              $http_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_http_version 1.1;
    proxy_set_header   Upgrade    $http_upgrade;
    proxy_set_header   Connection "upgrade";
    proxy_redirect off;    
}

}

Log attached from app when playing videos:
Immich_log_2023-10-26T15_10_30.207502.csv

The OS that Immich Server is running on

Docker, managed with Portainer on Debian Bookworm. Using external nginx as reverse proxy.

Version of Immich Server

1.82.1

Version of Immich Mobile App

1.82.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Same as default in Github

Your .env content

Same as default in Github

Reproduction steps

1. Import self-signed SSL (CA) into mobile device
2. Install Immich mobile app in Android/iOS
3. Set the Allow self-signed SSL certificates at the Login sceen with "gears" icon when setting up https url to nginx reverse proxy to Immich
4. Login to Immich
5. Allow initial timeline to be built
6. Noticed all static images are able to viewed normally
7. Start playing any video. Video is open and able to see the video thumbnail but is not able to play it. Loading indicator just spins and spins. Doesn't timeout or show any additional errors.

Additional information

No response

Originally created by @w00tlarr on GitHub (Oct 26, 2023). ### The bug Initial Login to Immich app is OK where I'm able to set the https url and enabled the Allow self-signed SSL certificates Initial building of timeline and images are OK too and able to scroll all the way down the timeline with all thumbnails loaded properly. Am able to view any static Images fine but I unable to playback any videos in the app itself when self-signed SSL. Tho I am able to download the original video file. Using external nginx as reverse proxy with this nginx.conf: server { listen 2000 ssl default_server; listen [::]:2000 ssl default_server; server_name _; ssl_certificate /etc/certs/server.pem; ssl_certificate_key /etc/certs/server-key.pem; root /var/www/html; client_max_body_size 50000M; #"Immich" location / { proxy_pass_request_headers on; proxy_pass http://192.168.1.XX:2283; proxy_set_header Host $http_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_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; } } Log attached from app when playing videos: [Immich_log_2023-10-26T15_10_30.207502.csv](https://github.com/immich-app/immich/files/13181765/Immich_log_2023-10-26T15_10_30.207502.csv) ### The OS that Immich Server is running on Docker, managed with Portainer on Debian Bookworm. Using external nginx as reverse proxy. ### Version of Immich Server 1.82.1 ### Version of Immich Mobile App 1.82.0 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML Same as default in Github ``` ### Your .env content ```Shell Same as default in Github ``` ### Reproduction steps ```bash 1. Import self-signed SSL (CA) into mobile device 2. Install Immich mobile app in Android/iOS 3. Set the Allow self-signed SSL certificates at the Login sceen with "gears" icon when setting up https url to nginx reverse proxy to Immich 4. Login to Immich 5. Allow initial timeline to be built 6. Noticed all static images are able to viewed normally 7. Start playing any video. Video is open and able to see the video thumbnail but is not able to play it. Loading indicator just spins and spins. Doesn't timeout or show any additional errors. ``` ### Additional information _No response_
Author
Owner

@w00tlarr commented on GitHub (Oct 26, 2023):

nginx reverse proxy logs:
image

@w00tlarr commented on GitHub (Oct 26, 2023): nginx reverse proxy logs: ![image](https://github.com/immich-app/immich/assets/126688857/e723ee6b-2c40-41e1-90de-cd5e478c2eab)
Author
Owner

@w00tlarr commented on GitHub (Oct 26, 2023):

Discord: https://discord.com/channels/979116623879368755/1159225824935940167

@w00tlarr commented on GitHub (Oct 26, 2023): Discord: https://discord.com/channels/979116623879368755/1159225824935940167
Author
Owner

@w00tlarr commented on GitHub (Oct 26, 2023):

Forgot to mention - updated my nginx reverse proxy without SSL, setup Immich app with normal http url, and the video playback works OK

@w00tlarr commented on GitHub (Oct 26, 2023): Forgot to mention - updated my nginx reverse proxy without SSL, setup Immich app with normal http url, and the video playback works OK
Author
Owner

@t3dium commented on GitHub (Oct 27, 2023):

I'm also encountering this issue, setup immich behind nginx-proxy-manager with a self signed cert and videos don't play on mobile. They only work on the web version of immich

@t3dium commented on GitHub (Oct 27, 2023): I'm also encountering this issue, setup immich behind nginx-proxy-manager with a self signed cert and videos don't play on mobile. They only work on the web version of immich
Author
Owner

@lwalegba commented on GitHub (Oct 27, 2023):

I also had this issue. But changed to a certificate from Let's Encrypt (i.e. not self signed) and then it works. So it seems to be connected to just self signed certs.

@lwalegba commented on GitHub (Oct 27, 2023): I also had this issue. But changed to a certificate from Let's Encrypt (i.e. not self signed) and then it works. So it seems to be connected to just self signed certs.
Author
Owner

@w00tlarr commented on GitHub (Oct 28, 2023):

I'm also encountering this issue, setup immich behind nginx-proxy-manager with a self signed cert and videos don't play on mobile. They only work on the web version of immich

Yes. Issue only occurs at the mobile app

@w00tlarr commented on GitHub (Oct 28, 2023): > I'm also encountering this issue, setup immich behind nginx-proxy-manager with a self signed cert and videos don't play on mobile. They only work on the web version of immich Yes. Issue only occurs at the mobile app
Author
Owner

@blacksong commented on GitHub (Oct 30, 2023):

I had the same issue using nginx and self-signed SSL.

@blacksong commented on GitHub (Oct 30, 2023): I had the same issue using nginx and self-signed SSL.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1517