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

Cached thumbnails dont work using reverse proxy #773

Open
collinkreutzer opened this issue Nov 18, 2024 · 0 comments
Open

Cached thumbnails dont work using reverse proxy #773

collinkreutzer opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@collinkreutzer
Copy link

Describe the bug
Cached thumbnails (e.g. Footprint images shown in list or search view) are not displayed and have a wrong path when using a nginx reverse proxy.

To Reproduce
Steps to reproduce the behavior:

  1. Host PartDB via Docker as describered here
  2. Setup nginx reverse proxy
  3. Create a footprint using one of the shipped footprint images (e.g. Ceramic-SMD_0603.png)
  4. Create a part using this footprint
  5. Check thumbnail in list, search and detail view. List and search show no thumbnail image and have a path beginning with //localhost:8080/media/cache/thumbnail_sm/img/footprints/ instead of the correct URL. In detail view, the correct image is shown (path "/img/footprints/...".

Expected behavior
Path begins with / to make it relative to the hostname or uses env parameter DEFAULT_URI to construct the correct URI.

Screenshots
2024-11-18 17_09_00-Parts with category Capacitor

Server Side

  • Part-DB Version: 1.14.4
  • PHP Version: 8.2.25
  • Database Server: SQLite

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version 131.0.6778.70
@collinkreutzer collinkreutzer added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant