baikal-docker icon indicating copy to clipboard operation
baikal-docker copied to clipboard

Access via reverse proxy by non standard 443 port

Open acotor opened this issue 1 year ago • 1 comments

Hi, I set up a baikal:nginx container and it works on my LAN, but something wrong happens when I reverse proxy (using Nginx Proxy Manager) it to a none standard port on a dav.mydomian.

When I access https://dav.mydomain:9443, html texts are loaded, but css/js/png failed to load. I checked the console, css/js/png are requested via https://dav.mydomain/res/*** , which missed the port 9443. The Login button on page is linked to https://dav.mydomain/admin, which missed the 9443 too.

NPM side, I set a Proxy Hosts

  • Details Tab, Domain Names is dav.mydomian; Scheme / Forward Hostname IP/ Forward Port are http / 127.0.0.1 / 5130
  • SSL Tab, Set.
  • Advanced Tab, listen [::]:9443 ssl http2; listen 9443 ssl http2;

How can I solve this problem, or dig in more about the reason?

Thanks !

Port 5130 on localhost is mapping to the port 80 on the baikal:nginx container.

acotor avatar Feb 28 '24 01:02 acotor

I did some local testing, can you try setting the Host HTTP header to dav.mydomain:9443?

Not sure why X-Forwarded-Port and X-Forwarded-Host are not used, but setting the Host header should fix your issue.

ckulka avatar Apr 21 '24 19:04 ckulka

This issue looks inactive, I will close it in 7 days.

github-actions[bot] avatar Jun 21 '24 02:06 github-actions[bot]

Closing this issue due to inactivity.

github-actions[bot] avatar Jun 28 '24 02:06 github-actions[bot]