Cannot download files after upgrade to Pro 12

I get error in browser console when click download of any file:

/library/library-id/MyLibrary/:1 Mixed Content: The site at ‘https://sf.domain.net/’ was loaded over a secure connection, but the file at ‘https://sf.domain.net/seafhttp/repos/library-id/files//filename/?op=download’ was redirected through an insecure connection. This file should be served over HTTPS. See Chromium Blog: Protecting users from insecure downloads in Google Chrome for more details.

I’ve tried:

  • add ‘127.0.0.1’ to ALLOWED_HOSTS
  • add middleware “stripprefix” for “/seafhttp” in Traefik setup

I think it is probably a bad Traefik configuration, but I cannot figure it out. My config works well for Pro 11 version.

As the error message indicated, you have a mix of HTTPS and HTTP problem.

Can you check your configuration of SEAFILE_SERVER_PROTOCOL and SEAFILE_SERVER_HOSTNAME?

Thank you for the pointer! Indeed I set the protocol wrong, should be https instead of http.

Feeling grateful for this project :slight_smile: Thank you for all the great work!