[GH-ISSUE #95] Pictshare doesn't work with docker and nginx proxy_pass #377

Closed
opened 2026-02-27 12:43:41 +03:00 by kerem · 0 comments
Owner

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:

    location /pictshare/ {
      proxy_pass http://0.0.0.0:8537;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

Works:

    location / {
      proxy_pass http://0.0.0.0:8537;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
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: ``` location /pictshare/ { proxy_pass http://0.0.0.0:8537; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } ``` Works: ``` location / { proxy_pass http://0.0.0.0:8537; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } ```
kerem closed this issue 2026-02-27 12:43:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#377
No description provided.