ckulka / baikal-docker

Provides a ready-to-go Baikal server, incl. docker-compose.yml & Systemd service file
https://hub.docker.com/r/ckulka/baikal
MIT License
367 stars 46 forks source link

Access via reverse proxy by non standard 443 port #169

Closed acotor closed 5 months ago

acotor commented 9 months ago

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

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.

ckulka commented 7 months ago

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.

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 5 months ago

Closing this issue due to inactivity.