Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 3 tasks
w00tlarr opened this issue Oct 26, 2023 · 7 comments
Closed
1 of 3 tasks

Comments

@w00tlarr
Copy link

w00tlarr commented 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

@w00tlarr
Copy link
Author

nginx reverse proxy logs:
image

@w00tlarr
Copy link
Author

@w00tlarr
Copy link
Author

w00tlarr commented 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

@t3dium
Copy link

t3dium commented 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

@lwalegba
Copy link

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.

@w00tlarr
Copy link
Author

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

@blacksong
Copy link

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

@immich-app immich-app locked and limited conversation to collaborators Nov 1, 2023
@alextran1502 alextran1502 converted this issue into discussion #4757 Nov 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants