Skip to content
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

Resetting image host urls to http from https #3082

Closed
savvasdalkitsis opened this issue Jun 21, 2024 · 1 comment
Closed

Resetting image host urls to http from https #3082

savvasdalkitsis opened this issue Jun 21, 2024 · 1 comment

Comments

@savvasdalkitsis
Copy link

savvasdalkitsis commented Jun 21, 2024

Describe the bug/problem

I am running my calibre-web instance behind a reverse proxy with https.

Given a configuration like this:

api_endpoint=https://DOMAIN/kobo/TOKEN
image_host=https://DOMAIN
image_url_quality_template=https://DOMAIN/kobo/TOKEN/{ImageId}/{width}/{height}/{Quality}/isGreyscale/image.jpg
image_url_template=https://DOMAIN/kobo/TOKEN/{ImageId}/{width}/{height}/false/image.jpg

After I disconnect my device, either immediately or after a little while, the images of the kobo store and others are failing to load.

Checking the config file again shows that calibre-web has automatically re-written the following urls (api_endpoint, image_host, image_url_quality_template and image_url_template) to use simple http instead of https which i believe is the reason for the images failing to load

image_host=http://DOMAIN
image_url_quality_template=http://DOMAIN/kobo/TOKEN/{ImageId}/{width}/{height}/{Quality}/isGreyscale/image.jpg
image_url_template=http://DOMAIN/kobo/TOKEN/{ImageId}/{width}/{height}/false/image.jpg

Note that the api_endpoint url remains unmodified to https

  • OS: Linux 5.15.0-112-generic 122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64
  • Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
  • Calibre-Web version: 0.6.21 - c45188b - 2023-10-21T12:40:32+02:00
  • Docker container: LinuxServer (latest)
@OzzieIsaacs
Copy link
Collaborator

Something with your proxy config is wrong, so calibre-web gets accessed via http instead of https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants