plane icon indicating copy to clipboard operation
plane copied to clipboard

Unable to log in when behind reverse proxy

Open Willow6949 opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

Installation works fine when logging in via IP. However as soon as I try to log in behind my Nginx Proxy Manager it's not excepting any credentials.

Anything I can do to mitigate this issue?

Steps to reproduce

Create a DNS record on your firewall. Create a Proxy host in NPM Connect to Plane using your proxy host domain e.g. https://plane.domainexample.com Login with default credentials.

image

Browser

Other

Version

Self-hosted

Willow6949 avatar Jun 13 '23 22:06 Willow6949

Hi @Willow6949, it would be great if you could also share the network logs. Also just to confirm the proxy should be configured to forward / to plane frontend and /api to plane backend and /uploads/ to plane minio.

pablohashescobar avatar Jun 14 '23 03:06 pablohashescobar

Hi @pablohashescobar I've changed the the proxy locations per your instructions but still no luck to sign in. I'm not well versed in nginx so I know I'm doing something wrong. Which network logs would you like to look at?

image image

Willow6949 avatar Jun 14 '23 19:06 Willow6949

Hi @Willow6949, it looks like the backend is still not accessible anything to /api should be forwarded to the backend container.

pablohashescobar avatar Jun 15 '23 17:06 pablohashescobar

I'm facing the same problem. Seems that the frontend is trying to use HTTP instead HTTPS protocol for some reason. Any idea why? In the @Willow6949 screenshots we can also clearly see this behavior. The browser blocks HTTP ajax calls when the domain is using HTTPS.

niltonvasques avatar Jul 25 '23 04:07 niltonvasques

I figured out the problem. After change the URL you need to rebuild the planefrontend image from scratch, because the URL is hardcoded inside the previos image.

niltonvasques avatar Jul 25 '23 05:07 niltonvasques

Hi, it is recomended to use the pre-built images using the docker-compose-hub.yml. Closing this issue please feel free to re-open if the issue still persists.

pablohashescobar avatar Aug 23 '23 16:08 pablohashescobar