Closed dlmw closed 3 months ago
I managed to solve it by modifying the Caddyfile like so:
bar.dlmw.ch {
# here
@uploads {
path_regexp uploads ^/uploads/(.*)
}
rewrite @uploads /bar/uploads/{re.uploads.1}
handle_path /search/* {
reverse_proxy meilisearch:7700
}
handle_path /bar/* {
reverse_proxy barassistant:3000
}
handle_path /* {
reverse_proxy saltrim:8080
}
}
Maybe the thumbnails should be served at the same subpath than the images.
Describe the bug I have just created my Bar Assistant instance. Everything works fine but the images don't appear. However, thumbnails work fine.
After inspecting the HTML, I see that the URI of the picture is "https://bar.mydomain.com/uploads/cocktails/1/1934-cosmo-1_79lTcl.jpg", but it should be "https://bar.dlmw.ch/**bar**/uploads/cocktails/1/1934-cosmo-1_79lTcl.jpg". My reverse proxy is Caddy and the Caddyfile looks somewhat like this:
To Reproduce
Versions: