mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #95] Pictshare doesn't work with docker and nginx proxy_pass #70
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dessalines on GitHub (Sep 7, 2019).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/95
Use case: I want both pictshare, and other services running on the same box, at the same domain, so use nginx proxy_pass.
I'm running the pictshare docker (at a specific port) which works well, but for some reason, if the nginx location that isn't at the top domain, it doesn't work.
Doesn't work:
Works:
@dessalines commented on GitHub (Sep 7, 2019):
Okay I half figured this out, but the css and such are still all served at the top level, and wrong, but at least upload.php, and the share urls are correctly routed.
proxy_pass needs a slash after it:
proxy_pass http://0.0.0.0:8537/;@dessalines commented on GitHub (Sep 8, 2019):
Another really bad issue: when using proxy_pass, it can't serve mp4s correctly. I played with it for 3+ hours and couldn't get it working.
error in web console:
HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://test.lemmy.com/pictshare/hovz5z.mp4 failed.I tried overwriting the content-type of all mp4s served, but unfortunately it still had errors.
@dessalines commented on GitHub (Sep 8, 2019):
Wait nevermind, I figured out that one. The videos are actually at
url/raw, unlike the images.