[GH-ISSUE #472] Papermerge behind Nginx Proxy Manager not working #364

Closed
opened 2026-02-25 21:31:47 +03:00 by kerem · 4 comments
Owner

Originally created by @SamTV12345 on GitHub (Aug 21, 2022).
Original GitHub issue: https://github.com/ciur/papermerge/issues/472

Originally assigned to: @ciur on GitHub.

Description
Deploy papermerge to be available outside of the internal network via reverse proxy

Expected
Access via ssl and DNS record papermerge.

Actual
Cannot login to the system.

Try 1: Use the complete stack: https://docs.papermerge.io/Installation/docker-compose.html#complete-stack I tried to use the complete stack, all services were also available but as soon as I got to the login screen and typed in username and password the page reloaded and nothing happened. I didn't got an error message compared to entering wrong username or password. When I checked the logs I got a 403 for the api path.

Try 2: Use this https://github.com/ciur/papermerge/blob/master/docker/docker-compose.yml . I can login via internal IP, via DNS it says POST https:///api/auth/login/ 404 with this message:

image

Info:

  • OS: Proxmox LXC running 22.0.4
  • Browser Microsoft edge
  • Database PostgresSQL: 12.3
  • Papermerge Version: latest/2.0.0
Originally created by @SamTV12345 on GitHub (Aug 21, 2022). Original GitHub issue: https://github.com/ciur/papermerge/issues/472 Originally assigned to: @ciur on GitHub. **Description** Deploy papermerge to be available outside of the internal network via reverse proxy **Expected** Access via ssl and DNS record papermerge. **Actual** Cannot login to the system. Try 1: Use the complete stack: https://docs.papermerge.io/Installation/docker-compose.html#complete-stack I tried to use the complete stack, all services were also available but as soon as I got to the login screen and typed in username and password the page reloaded and nothing happened. I didn't got an error message compared to entering wrong username or password. When I checked the logs I got a 403 for the api path. Try 2: Use this https://github.com/ciur/papermerge/blob/master/docker/docker-compose.yml . I can login via internal IP, via DNS it says POST https://<my-domain>/api/auth/login/ 404 with this message: ![image](https://user-images.githubusercontent.com/40429738/185803319-6bbf006e-4a3a-4ae4-bd79-cfe7af839dba.png) **Info:** - OS: Proxmox LXC running 22.0.4 - Browser Microsoft edge - Database PostgresSQL: 12.3 - Papermerge Version: latest/2.0.0
kerem 2026-02-25 21:31:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ciur commented on GitHub (Aug 21, 2022):

@SamTV12345

Deploy papermerge to be available outside of the internal network via reverse proxy

The above mentioned docker compose is not meant to be deployed "outside internal network via reverse proxy"

Access via ssl and DNS record papermerge.

Again, SSL (TLS) and DNS settings are outside the scope of above mentioned docker-compose

<!-- gh-comment-id:1221598779 --> @ciur commented on GitHub (Aug 21, 2022): @SamTV12345 > Deploy papermerge to be available outside of the internal network via reverse proxy The above mentioned docker compose is not meant to be deployed "outside internal network via reverse proxy" > Access via ssl and DNS record papermerge. Again, SSL (TLS) and DNS settings are outside the scope of above mentioned docker-compose
Author
Owner

@SamTV12345 commented on GitHub (Aug 21, 2022):

So even the full stack is not ready for being deployed with a reverse proxy?

<!-- gh-comment-id:1221599039 --> @SamTV12345 commented on GitHub (Aug 21, 2022): So even the full stack is not ready for being deployed with a reverse proxy?
Author
Owner

@ciur commented on GitHub (Aug 21, 2022):

Maybe it is.
I've just never done it with docker compose. Provided docker compose is for local setup - never was meant to be accessed over the network.

Maybe you want to wait couple of weeks as I will be releasing a series of videos "Papermerge for DevOps" in which I will describe and detail different deployment scenarios.

<!-- gh-comment-id:1221599602 --> @ciur commented on GitHub (Aug 21, 2022): Maybe it is. I've just never done it with docker compose. Provided docker compose is for local setup - never was meant to be accessed over the network. Maybe you want to wait couple of weeks as I will be releasing a series of videos "Papermerge for DevOps" in which I will describe and detail different deployment scenarios.
Author
Owner

@SamTV12345 commented on GitHub (Aug 21, 2022):

Ah I see. I was wondering why you should edit the /etc/hosts file. Now I understand your aim. Looking forward to your video series.

<!-- gh-comment-id:1221599938 --> @SamTV12345 commented on GitHub (Aug 21, 2022): Ah I see. I was wondering why you should edit the /etc/hosts file. Now I understand your aim. Looking forward to your video series.
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/papermerge#364
No description provided.